[openssl-commits] [openssl] master update
Rich Salz
rsalz at openssl.org
Mon May 25 16:47:10 UTC 2015
The branch master has been updated
via fc0eb00bca9dd892592edb6367927186928a7e1a (commit)
from 81fc390fd96ad9fae21cda919513fb696cd24028 (commit)
- Log -----------------------------------------------------------------
commit fc0eb00bca9dd892592edb6367927186928a7e1a
Author: Rich Salz <rsalz at akamai.com>
Date: Mon May 25 11:13:28 2015 -0400
fix s_client crash
The 'http proxy' commit broke s_client default host/port value.
Thanks to Matt for the simplest fix.
Reviewed-by: Matt Caswell <matt at openssl.org>
-----------------------------------------------------------------------
Summary of changes:
apps/s_client.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/apps/s_client.c b/apps/s_client.c
index 8c5412c..6c14af0 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -635,8 +635,8 @@ int s_client_main(int argc, char **argv)
char *CApath = NULL, *CAfile = NULL, *cbuf = NULL, *sbuf = NULL;
char *mbuf = NULL, *proxystr = NULL, *connectstr = NULL;
char *cert_file = NULL, *key_file = NULL, *chain_file = NULL, *prog;
- char *chCApath = NULL, *chCAfile = NULL, *host = SSL_HOST_NAME, *inrand =
- NULL;
+ char *chCApath = NULL, *chCAfile = NULL, *host = SSL_HOST_NAME;
+ char *inrand = NULL;
char *passarg = NULL, *pass = NULL, *vfyCApath = NULL, *vfyCAfile = NULL;
char *sess_in = NULL, *sess_out = NULL, *crl_file = NULL, *p;
char *jpake_secret = NULL, *xmpphost = NULL;
@@ -1067,7 +1067,8 @@ int s_client_main(int argc, char **argv)
if (!extract_host_port(proxystr, &host, NULL, &port))
goto end;
}
- else if (!extract_host_port(connectstr, &host, NULL, &port))
+ else if (connectstr != NULL
+ && !extract_host_port(connectstr, &host, NULL, &port))
goto end;
if (unix_path && (socket_type != SOCK_STREAM)) {
More information about the openssl-commits
mailing list