]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC TEST: Fix double close of FD (coverity)
authorHugo Landau <hlandau@openssl.org>
Thu, 27 Jul 2023 15:29:42 +0000 (16:29 +0100)
committerHugo Landau <hlandau@openssl.org>
Thu, 10 Aug 2023 17:19:51 +0000 (18:19 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565)

test/quic_multistream_test.c

index eef32d4f5806447e168dd3d059f6e76869dde0b8..9936351884881473d52b38d4e33215ea62fdec56 100644 (file)
@@ -1513,6 +1513,7 @@ static int run_script_worker(struct helper *h, const struct script_op *script,
         case OPK_C_CLOSE_SOCKET:
             {
                 BIO_closesocket(h->c_fd);
+                h->c_fd = -1;
             }
             break;