diff options
Diffstat (limited to 'src/core/transport')
-rw-r--r-- | src/core/transport/http/sender/http_client.c | 5 |
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); |