apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject svn commit: r423239 - /apr/apr-util/trunk/ssl/apr_ssl_socket.c
Date Tue, 18 Jul 2006 20:52:50 GMT
Author: dreid
Date: Tue Jul 18 13:52:46 2006
New Revision: 423239

URL: http://svn.apache.org/viewvc?rev=423239&view=rev
Log:
Fix an error pointed out by Brad Nicholes when closing
"plain" sockets if the ssl open fails. 

Modified:
    apr/apr-util/trunk/ssl/apr_ssl_socket.c

Modified: apr/apr-util/trunk/ssl/apr_ssl_socket.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/ssl/apr_ssl_socket.c?rev=423239&r1=423238&r2=423239&view=diff
==============================================================================
--- apr/apr-util/trunk/ssl/apr_ssl_socket.c (original)
+++ apr/apr-util/trunk/ssl/apr_ssl_socket.c Tue Jul 18 13:52:46 2006
@@ -43,7 +43,6 @@
                                                 apr_pool_t *p)
 {
     apr_ssl_socket_t *sslSock;
-    apr_socket_t *plainSock;
     apr_pool_t *thepool;
 
     if (!asf)
@@ -64,7 +63,7 @@
     sslSock->pool = thepool;
     sslSock->factory = asf;
     if (apu_ssl_socket_create(sslSock, asf) != APR_SUCCESS) {
-        apr_socket_close(plainSock);
+        apr_socket_close(sslSock->plain);
         return -1;
     }
 



Mime
View raw message