axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r1163227 - /axis/axis2/c/core/trunk/util/src/network_handler.c
Date Tue, 30 Aug 2011 14:24:58 GMT
Author: samisa
Date: Tue Aug 30 14:24:57 2011
New Revision: 1163227

URL: http://svn.apache.org/viewvc?rev=1163227&view=rev
Log:
Applied patch given in AXIS2C-1557 to close the socket when in error

Modified:
    axis/axis2/c/core/trunk/util/src/network_handler.c

Modified: axis/axis2/c/core/trunk/util/src/network_handler.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/src/network_handler.c?rev=1163227&r1=1163226&r2=1163227&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/src/network_handler.c (original)
+++ axis/axis2/c/core/trunk/util/src/network_handler.c Tue Aug 30 14:24:57 2011
@@ -95,6 +95,7 @@ axutil_network_handler_open_socket(
         }
         else
         {
+            AXIS2_CLOSE_SOCKET(sock);
             AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_ADDRESS, AXIS2_FAILURE);
             return AXIS2_INVALID_SOCKET;
         }



Mime
View raw message