mirror of
https://github.com/curl/curl.git
synced 2026-07-24 15:47:16 +03:00
ngtcp2+openssl: fix leak of session
Fix return value indicating to OpenSSL if reference to session is kept (it is not), so OpenSSL frees it. Reported-by: Aleksei Bavshin Fixes #19717 Closes #19718
This commit is contained in:
parent
c273de193e
commit
9bb5c0578b
1 changed files with 0 additions and 1 deletions
|
|
@ -2277,7 +2277,6 @@ static int quic_ossl_new_session_cb(SSL *ssl, SSL_SESSION *ssl_sessionid)
|
|||
#endif
|
||||
Curl_ossl_add_session(cf, data, ctx->peer.scache_key, ssl_sessionid,
|
||||
SSL_version(ssl), "h3", quic_tp, quic_tp_len);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue