summaryrefslogtreecommitdiffstats
path: root/src/core/transport/http/sender/ssl
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/ssl
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/ssl')
-rw-r--r--src/core/transport/http/sender/ssl/ssl_stream.c4
-rw-r--r--src/core/transport/http/sender/ssl/ssl_stream.h5
-rw-r--r--src/core/transport/http/sender/ssl/ssl_utils.c5
3 files changed, 9 insertions, 5 deletions
diff --git a/src/core/transport/http/sender/ssl/ssl_stream.c b/src/core/transport/http/sender/ssl/ssl_stream.c
index 9360f1a..f5aec10 100644
--- a/src/core/transport/http/sender/ssl/ssl_stream.c
+++ b/src/core/transport/http/sender/ssl/ssl_stream.c
@@ -38,10 +38,6 @@ struct ssl_stream_impl
#define AXIS2_INTF_TO_IMPL(stream) ((ssl_stream_impl_t *)(stream))
-void AXIS2_CALL axis2_ssl_stream_free(
- axutil_stream_t * stream,
- const axutil_env_t * env);
-
axutil_stream_type_t AXIS2_CALL axis2_ssl_stream_get_type(
axutil_stream_t * stream,
const axutil_env_t * env);
diff --git a/src/core/transport/http/sender/ssl/ssl_stream.h b/src/core/transport/http/sender/ssl/ssl_stream.h
index 396da5d..696fc47 100644
--- a/src/core/transport/http/sender/ssl/ssl_stream.h
+++ b/src/core/transport/http/sender/ssl/ssl_stream.h
@@ -41,6 +41,11 @@ extern "C"
axis2_char_t * key_file,
axis2_char_t * ssl_pp);
+ void AXIS2_CALL
+ axis2_ssl_stream_free(
+ axutil_stream_t *stream,
+ const axutil_env_t *env);
+
/** @} */
#ifdef __cplusplus
diff --git a/src/core/transport/http/sender/ssl/ssl_utils.c b/src/core/transport/http/sender/ssl/ssl_utils.c
index 01fe993..66cb9e7 100644
--- a/src/core/transport/http/sender/ssl/ssl_utils.c
+++ b/src/core/transport/http/sender/ssl/ssl_utils.c
@@ -215,7 +215,10 @@ axis2_ssl_utils_cleanup_ssl(
if (ssl)
{
- SSL_shutdown(ssl);
+ if(SSL_shutdown(ssl)==0)
+ {
+ SSL_free(ssl);
+ }
}
if (ctx)
{