Skip to content

Commit

Permalink
httpReconnect2 did not reset the socket file descriptor when the TLS
Browse files Browse the repository at this point in the history
negotiation failed (Apple #5907)
  • Loading branch information
michaelrsweet committed Apr 7, 2021
1 parent 064e50f commit b8ec2b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cups/http.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -2421,6 +2421,7 @@ httpReconnect2(http_t *http, /* I - HTTP connection */
if (_httpTLSStart(http) != 0)
{
httpAddrClose(NULL, http->fd);
http->fd = -1;

return (-1);
}
Expand Down

0 comments on commit b8ec2b4

Please sign in to comment.