ssl_client: fix option parsing

The wrong character was used to indicate options taking an integer
parameter.

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Ron Yorston 2018-03-20 11:41:28 +01:00 committed by Denys Vlasenko
parent b3e98b1ccc
commit b5820d9fd8

View File

@ -30,7 +30,7 @@ int ssl_client_main(int argc UNUSED_PARAM, char **argv)
// INIT_G();
tls = new_tls_state();
opt = getopt32(argv, "es:#r:#n:", &tls->ofd, &tls->ifd, &sni);
opt = getopt32(argv, "es:+r:+n:", &tls->ofd, &tls->ifd, &sni);
if (!(opt & (1<<2))) {
/* -r N defaults to -s N */
tls->ifd = tls->ofd;