提交 222417eb 编写于 作者: M Matt Caswell

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 729ef856.
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3881)
上级 dd05bd4c
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册