summaryrefslogtreecommitdiffstats
path: root/src/core/transport/http/sender
diff options
context:
space:
mode:
authorGravatar nandika2010-11-13 18:40:21 +0000
committerGravatar nandika2010-11-13 18:40:21 +0000
commitcb1322e8b220a4691e85ccb3aa9c1795291ec047 (patch)
treecd328f1d3e7eabd9923bded31c7f44b80a18d748 /src/core/transport/http/sender
parent76f4a19f527e9dfd8faa8211437c509979a5488e (diff)
downloadaxis2c-cb1322e8b220a4691e85ccb3aa9c1795291ec047.tar.gz
axis2c-cb1322e8b220a4691e85ccb3aa9c1795291ec047.tar.bz2
Fix for jira issue 1501
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1034838 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/core/transport/http/sender')
-rw-r--r--src/core/transport/http/sender/http_client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/transport/http/sender/http_client.c b/src/core/transport/http/sender/http_client.c
index 5d16e5c..73115fc 100644
--- a/src/core/transport/http/sender/http_client.c
+++ b/src/core/transport/http/sender/http_client.c
@@ -277,8 +277,9 @@ axis2_http_client_send(
return AXIS2_FAILURE;
}
}
- client->data_stream =
- axutil_stream_create_ssl(env, client->sockfd, axis2_http_client_get_server_cert(client,
+ if(!client->data_stream)
+ client->data_stream =
+ axutil_stream_create_ssl(env, client->sockfd, axis2_http_client_get_server_cert(client,
env), axis2_http_client_get_key_file(client, env), ssl_pp);
#else
axutil_network_handler_close_socket(env, client->sockfd);