]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
`httpReconnect2` did not reset the socket file descriptor when the TLS
authorMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 7 Apr 2021 21:50:08 +0000 (17:50 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Wed, 7 Apr 2021 21:50:08 +0000 (17:50 -0400)
negotiation failed (Apple #5907)

cups/http.c

index 8d69ce31f83f511517ef2d1452a72248013c2292..dcc00ac52253f6b50b2c57dc7f8c03b40e4615f2 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * HTTP routines for CUPS.
  *
- * Copyright © 2007-2019 by Apple Inc.
+ * Copyright © 2007-2021 by Apple Inc.
  * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
  *
  * This file contains Kerberos support code, copyright 2006 by
@@ -2421,6 +2421,7 @@ httpReconnect2(http_t *http,              /* I - HTTP connection */
     if (_httpTLSStart(http) != 0)
     {
       httpAddrClose(NULL, http->fd);
+      http->fd = -1;
 
       return (-1);
     }