]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix a few erroneous double frees in quic-hq-interop
authorNeil Horman <nhorman@openssl.org>
Fri, 7 Mar 2025 20:09:48 +0000 (15:09 -0500)
committerAlexandr Nedvedicky <sashan@openssl.org>
Sun, 9 Mar 2025 17:44:53 +0000 (18:44 +0100)
Uncovered during testing for openssl/project#1130

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27004)

test/quic-openssl-docker/hq-interop/quic-hq-interop.c

index bedfeb2bc73acbce0158a248c2cb63f69a8856f6..d13ef4e833e591211e4b84047bf86a946392fbc5 100644 (file)
@@ -825,6 +825,9 @@ end:
     SSL_CTX_free(*ctx);
     SSL_free(*ssl);
     BIO_ADDR_free(peer_addr);
+    *ctx = NULL;
+    *ssl = NULL;
+    peer_addr = NULL;
     return 0;
 }