nghttpx: Fix ubsan error
This commit is contained in:
parent
f1d8547b29
commit
14dfeee4ed
|
@ -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()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue