From cb1322e8b220a4691e85ccb3aa9c1795291ec047 Mon Sep 17 00:00:00 2001 From: nandika Date: Sat, 13 Nov 2010 18:40:21 +0000 Subject: 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 --- src/core/transport/http/sender/http_client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.1-32-gdbae