archrelease: copy trunk to testing-x86_64
[arch-packages.git] / cups / repos / extra-x86_64 / 0001_Fix_OpenSSL_crash_bug.patch
blob68c9f711ac7a4cdf90ab7aa590757b2e51fcd4b7
1 From c0c403744b1bf4a9790a8fcaabcd60970cbefe06 Mon Sep 17 00:00:00 2001
2 From: Michael R Sweet <michael.r.sweet@gmail.com>
3 Date: Tue, 7 Jun 2022 13:45:29 -0400
4 Subject: [PATCH] Fix OpenSSL crash bug - "tls" pointer wasn't cleared after
5 freeing it (Issue #409)
7 diff --git a/cups/tls-openssl.c b/cups/tls-openssl.c
8 index c3e57742e..6db9f8a9c 100644
9 --- a/cups/tls-openssl.c
10 +++ b/cups/tls-openssl.c
11 @@ -1152,6 +1152,8 @@ _httpTLSStop(http_t *http) // I - Connection to server
12 SSL_shutdown(http->tls);
13 SSL_CTX_free(context);
14 SSL_free(http->tls);
16 + http->tls = NULL;