]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
ab: apr_pool_clear() closes the socket already.
authorYann Ylavic <ylavic@apache.org>
Fri, 21 Jul 2023 14:56:05 +0000 (14:56 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 21 Jul 2023 14:56:05 +0000 (14:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1911177 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 571d2b060782e66484bf66820223064b5a7dc424..dfca869710aa049a8471d271d561df7271194fc9 100644 (file)
@@ -1766,8 +1766,8 @@ static void close_connection(struct connection *c)
         c->ssl = NULL;
     }
 #endif
-    apr_socket_close(c->aprsock);
     apr_pool_clear(c->ctx);
+    c->aprsock = NULL;
 }
 
 /* --------------------------------------------------------- */