diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2021-04-07 17:50:08 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2021-04-07 17:50:59 -0400 |
commit | b8ec2b42fb76e9c8bf1e706cb629a197e90fb9d9 (patch) | |
tree | cdd557e4bd3008ed73dd554423e27b4744124a1e /cups | |
parent | 064e50fb06e83e6c1756e2a81c2fcbd4d6fca8e6 (diff) | |
download | cups-b8ec2b42fb76e9c8bf1e706cb629a197e90fb9d9.tar.gz |
`httpReconnect2` did not reset the socket file descriptor when the TLS
negotiation failed (Apple #5907)
Diffstat (limited to 'cups')
-rw-r--r-- | cups/http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cups/http.c b/cups/http.c index 8d69ce31f..dcc00ac52 100644 --- a/cups/http.c +++ b/cups/http.c @@ -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); } |