summaryrefslogtreecommitdiffstats
path: root/src/core/transport/http/sender/http_client.c
diff options
context:
space:
mode:
authorGravatar nandika2010-09-07 07:07:43 +0000
committerGravatar nandika2010-09-07 07:07:43 +0000
commitf50ef01a9279bd00a5021e84ca44b59941ddf4ea (patch)
treeef5c445cf736716f791507f72df3b8785934bbae /src/core/transport/http/sender/http_client.c
parentec135f9a64d6066a4f7870ec308de779a0da9256 (diff)
downloadaxis2c-f50ef01a9279bd00a5021e84ca44b59941ddf4ea.tar.gz
axis2c-f50ef01a9279bd00a5021e84ca44b59941ddf4ea.tar.bz2
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
Diffstat (limited to 'src/core/transport/http/sender/http_client.c')
-rw-r--r--src/core/transport/http/sender/http_client.c10
1 files changed, 9 insertions, 1 deletions
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;
}