From f50ef01a9279bd00a5021e84ca44b59941ddf4ea Mon Sep 17 00:00:00 2001 From: nandika Date: Tue, 7 Sep 2010 07:07:43 +0000 Subject: ssl memory issue fixed, patch 1237 applied git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@993243 13f79535-47bb-0310-9956-ffa450edef68 --- src/core/transport/http/sender/http_client.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/core/transport/http/sender/http_client.c') diff --git a/src/core/transport/http/sender/http_client.c b/src/core/transport/http/sender/http_client.c index 3a8deca..7ffc8ec 100644 --- a/src/core/transport/http/sender/http_client.c +++ b/src/core/transport/http/sender/http_client.c @@ -120,7 +120,15 @@ axis2_http_client_free( } if(-1 != http_client->sockfd) { - axutil_network_handler_close_socket(env, http_client->sockfd); +#ifdef AXIS2_SSL_ENABLED + if(http_client->data_stream->stream_type == AXIS2_STREAM_SOCKET) + { + axutil_network_handler_close_socket(env, http_client->sockfd); + // ssl streams of type AXIS2_STREAM_BASIC will be handled by SSL_shutdown(); + } +#else + axutil_network_handler_close_socket(env, http_client->sockfd); +#endif http_client->sockfd = -1; } -- cgit v1.1-32-gdbae