apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject svn commit: r507600 - /apr/apr-util/trunk/ssl/apr_ssl_openssl.c
Date Wed, 14 Feb 2007 16:18:52 GMT
Author: dreid
Date: Wed Feb 14 08:18:51 2007
New Revision: 507600

URL: http://svn.apache.org/viewvc?view=rev&rev=507600
Log:
Fix a potential segfault.

Submitted by Chad Fox (chad at gigapogo.com).


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

Modified: apr/apr-util/trunk/ssl/apr_ssl_openssl.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/ssl/apr_ssl_openssl.c?view=diff&rev=507600&r1=507599&r2=507600
==============================================================================
--- apr/apr-util/trunk/ssl/apr_ssl_openssl.c (original)
+++ apr/apr-util/trunk/ssl/apr_ssl_openssl.c Wed Feb 14 08:18:51 2007
@@ -200,14 +200,15 @@
         return -1;
     SSL_set_fd(sslData->ssl, fd);
 
+    newSock->pool = pool;
+    newSock->sslData = sslData;
+    newSock->factory = oldSock->factory;
+
     if ((sslOp = SSL_accept(sslData->ssl)) != 1) {
         openssl_get_error(newSock, sslOp);
         return -1;
     }
 
-    newSock->pool = pool;
-    newSock->sslData = sslData;
-    newSock->factory = oldSock->factory;
     return APR_SUCCESS;
 }
 



Mime
View raw message