]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugfix from ssl-2.5 2004/07/14 23:24:32
authorhno <>
Fri, 18 Mar 2005 21:41:21 +0000 (21:41 +0000)
committerhno <>
Fri, 18 Mar 2005 21:41:21 +0000 (21:41 +0000)
Fix filedescriptor leak on SSL_new allocation error

src/client_side.cc

index f6435f3be78306050a33ee2288f5f0b674c665b2..146fb5b65e6735462efcd9de30e0a22cbfa4c303 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.681 2005/03/06 21:08:13 serassio Exp $
+ * $Id: client_side.cc,v 1.682 2005/03/18 14:41:21 hno Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2974,6 +2974,7 @@ httpsAccept(int sock, int newfd, ConnectionDetail *details,
         ssl_error = ERR_get_error();
         debug(83, 1) ("httpsAccept: Error allocating handle: %s\n",
                       ERR_error_string(ssl_error, NULL));
+        comm_close(newfd);
         return;
     }