mirror of
https://github.com/curl/curl.git
synced 2026-05-17 23:26:23 +03: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
1 changed files with 8 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue