From 484b8f9ed873b680ea4acc4b72d74cdccd83251b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 23 Sep 2014 12:36:12 +0200 Subject: [PATCH] Fix bug in ssl_client2 reconnect option --- programs/ssl/ssl_client2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 4666ad829..ac87cc241 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -1330,7 +1330,7 @@ reconnect: goto exit; } - if( ( ret = net_connect( &server_fd, opt.server_name, opt.server_port, + if( ( ret = net_connect( &server_fd, opt.server_addr, opt.server_port, opt.transport == SSL_TRANSPORT_STREAM ? NET_PROTO_TCP : NET_PROTO_UDP ) ) != 0 ) {