]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix OpenSSL crash bug - "tls" pointer wasn't cleared after freeing it (Issue #409)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 7 Jun 2022 17:45:29 +0000 (13:45 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 7 Jun 2022 17:45:29 +0000 (13:45 -0400)
CHANGES.md
cups/tls-openssl.c

index 8b78b003fa7483743ee7c4649b43667bce386eec..befbf3ab44f372f54887d24ecdb469483c6cad0b 100644 (file)
@@ -6,6 +6,7 @@ Changes in CUPS v2.4.3 (TBA)
 
 - Added a title with device uri for found network printers (Issues #402, #393)
 - Fixed configuration on RISC-V machines (Issue #404)
+- Fixed an OpenSSL crash bug (Issue #409)
 
 
 Changes in CUPS v2.4.2 (26th May 2022)
index c3e57742e82c7b09f86805181f882f7ecd171e19..6db9f8a9c2be28bfcf1f7827e78cb0489954736f 100644 (file)
@@ -1152,6 +1152,8 @@ _httpTLSStop(http_t *http)                // I - Connection to server
   SSL_shutdown(http->tls);
   SSL_CTX_free(context);
   SSL_free(http->tls);
+
+  http->tls = NULL;
 }