]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix one other spot where http->fd isn't reset to -1 (Issue #5915)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 8 Apr 2021 12:43:21 +0000 (08:43 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 8 Apr 2021 12:43:21 +0000 (08:43 -0400)
cups/http.c

index a988e1fae4b029e3fc8dbd6dc23c13499967b291..f7331036d0db2a107e5d1dd348761443e70ce6bc 100644 (file)
@@ -2788,6 +2788,7 @@ _httpUpdate(http_t        *http,  /* I - HTTP connection */
       if (_httpTLSStart(http) != 0)
       {
         httpAddrClose(NULL, http->fd);
+        http->fd = -1;
 
        *status = http->status = HTTP_STATUS_ERROR;
        return (0);