nghttpx: Fix ubsan error

This commit is contained in:
Tatsuhiro Tsujikawa 2020-07-14 00:12:07 +09:00
parent f1d8547b29
commit 14dfeee4ed
1 changed files with 4 additions and 0 deletions

View File

@ -240,6 +240,10 @@ void Downstream::detach_downstream_connection() {
auto handler = dconn_->get_client_handler(); auto handler = dconn_->get_client_handler();
if (!handler) {
return;
}
handler->pool_downstream_connection( handler->pool_downstream_connection(
std::unique_ptr<DownstreamConnection>(dconn_.release())); std::unique_ptr<DownstreamConnection>(dconn_.release()));
} }