curl/lib/vtls
Michael Kaufmann 60738f398c vtls: Fix a memory leak if an SSL session cannot be added to the cache
On connection shutdown, a new TLS session ticket may arrive after the
SSL session cache has already been destructed. In this case, the new
SSL session cannot be added to the SSL session cache.

The callers of Curl_ssl_addsessionid() need to know whether the SSL
session has been added to the cache. If it has not been added, the
reference counter of the SSL session must not be incremented, or memory
used by the SSL session must be freed. This is now possible with the new
output parameter "added" of Curl_ssl_addsessionid().

Fixes #7683
Closes #7752
2021-09-24 13:23:42 +02:00
..
bearssl.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
bearssl.h
gskit.c lib: don't use strerror() 2021-09-09 07:53:42 +02:00
gskit.h
gtls.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
gtls.h
keylog.c
keylog.h
mbedtls_threadlock.c misc: update incorrect copyright year ranges 2021-08-16 11:21:47 +02:00
mbedtls_threadlock.h
mbedtls.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
mbedtls.h
mesalink.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
mesalink.h
nss.c vtls: fix connection reuse checks for issuer cert and case sensitivity 2021-07-20 09:36:06 +02:00
nssg.h
openssl.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
openssl.h
rustls.c rustls: add strerror.h include 2021-09-10 15:20:20 +02:00
rustls.h
schannel_verify.c vtls: fix typo in schannel_verify.c 2021-08-13 17:39:59 +02:00
schannel.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
schannel.h
sectransp.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
sectransp.h
vtls.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
vtls.h vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
wolfssl.c vtls: Fix a memory leak if an SSL session cannot be added to the cache 2021-09-24 13:23:42 +02:00
wolfssl.h