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:
parent
b3e98b1ccc
commit
b5820d9fd8
@ -30,7 +30,7 @@ int ssl_client_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
// INIT_G();
|
// INIT_G();
|
||||||
|
|
||||||
tls = new_tls_state();
|
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))) {
|
if (!(opt & (1<<2))) {
|
||||||
/* -r N defaults to -s N */
|
/* -r N defaults to -s N */
|
||||||
tls->ifd = tls->ofd;
|
tls->ifd = tls->ofd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user