mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-17 21:25:50 +02:00
- Fix that malloc failure for ngtcp2_conn_server_new
cleans up reference that older ngtcp2 versions can leave. Thanks to Qifan Zhang, Palo Alto Networks, for the report.
This commit is contained in:
@@ -1137,8 +1137,11 @@ static struct ngtcp2_conn* conn_client_setup(struct doq_client_data* data)
|
||||
client_chosen_version, &cbs, &settings, ¶ms,
|
||||
NULL, /* ngtcp2_mem allocator, use default */
|
||||
data /* callback argument */);
|
||||
if(!conn) fatal_exit("could not ngtcp2_conn_client_new: %s",
|
||||
ngtcp2_strerror(rv));
|
||||
if(rv!=0) {
|
||||
conn = NULL;
|
||||
fatal_exit("could not ngtcp2_conn_client_new: %s",
|
||||
ngtcp2_strerror(rv));
|
||||
}
|
||||
data->cc_algo = settings.cc_algo;
|
||||
return conn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user