diff options
author | nandika | 2010-09-07 07:07:43 +0000 |
---|---|---|
committer | nandika | 2010-09-07 07:07:43 +0000 |
commit | f50ef01a9279bd00a5021e84ca44b59941ddf4ea (patch) | |
tree | ef5c445cf736716f791507f72df3b8785934bbae /src/core/transport/http/sender/http_client.c | |
parent | ec135f9a64d6066a4f7870ec308de779a0da9256 (diff) | |
download | axis2c-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.c | 10 |
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; } |