ssl_client: fix option parsing 1_28_2
authorRon Yorston <rmy@pobox.com>
Tue, 20 Mar 2018 10:41:28 +0000 (11:41 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 26 Mar 2018 00:05:47 +0000 (02:05 +0200)
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>
networking/ssl_client.c

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