diff options
author | Matt Caswell <matt@openssl.org> | 2017-07-07 15:51:02 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-07-07 16:19:03 +0100 |
commit | 222417eb71a91f28381f5b3f93d7db690e8d92bf (patch) | |
tree | e90e49bb3bef4a12d7658e9fa20de7309019feef /apps | |
parent | dd05bd4cb46e9662fae6f0f8ca9590fef6c1c957 (diff) |
Fix s_client crash where the hostname is provided as a positional arg
If the hostname is provided as a positional arg then s_client crashes.
The crash occurs as s_client exits (after either a successful or
unsuccessful connection attempt).
This issue was introduced by commit 729ef85611.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3881)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 5525b31769..114071c0a3 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1477,7 +1477,7 @@ int s_client_main(int argc, char **argv) goto opthelp; } connect_type = use_inet; - connectstr = *opt_rest(); + freeandcopy(&connectstr, *opt_rest()); } else if (argc != 0) { goto opthelp; } |