]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
SSL_free() does check for != NULL (thanks Sashan)
authorJean-Frederic Clere <jfclere@gmail.com>
Tue, 10 Dec 2024 09:08:11 +0000 (10:08 +0100)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 16:27:33 +0000 (11:27 -0500)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859)

demos/http3/ossl-nghttp3-demo-server.c

index b72ad8f7170ef668e97dc86d35aaaae5cddac874..3ee5fa8e75f722d6ca841bdd1a3edb53da504d66 100644 (file)
@@ -438,12 +438,9 @@ static int quic_server_h3streams(nghttp3_conn *h3conn, struct h3ssl *h3ssl)
     return 0;
 err:
     fflush(stderr);
-    if (rstream != NULL)
-        SSL_free(rstream);
-    if (pstream != NULL)
-        SSL_free(pstream);
-    if (cstream != NULL)
-        SSL_free(cstream);
+    SSL_free(rstream);
+    SSL_free(pstream);
+    SSL_free(cstream);
     return -1;
 }