mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
quiche: handle calling disconnect twice
Reported-by: lilongyan-huawei on github Fixes #5726 Closes #5727
This commit is contained in:
parent
0b85969226
commit
425fa864ce
@ -95,8 +95,14 @@ static CURLcode qs_disconnect(struct quicsocket *qs)
|
||||
quiche_h3_config_free(qs->h3config);
|
||||
if(qs->h3c)
|
||||
quiche_h3_conn_free(qs->h3c);
|
||||
quiche_config_free(qs->cfg);
|
||||
quiche_conn_free(qs->conn);
|
||||
if(qs->cfg) {
|
||||
quiche_config_free(qs->cfg);
|
||||
qs->cfg = NULL;
|
||||
}
|
||||
if(qs->conn) {
|
||||
quiche_conn_free(qs->conn);
|
||||
qs->conn = NULL;
|
||||
}
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user