From: Ron Yorston Date: Tue, 20 Mar 2018 10:41:28 +0000 (+0100) Subject: ssl_client: fix option parsing X-Git-Tag: 1_28_2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2afdcc77ccdd60f2632d2ee79c47517536a14a07;p=oweals%2Fbusybox.git ssl_client: fix option parsing The wrong character was used to indicate options taking an integer parameter. Signed-off-by: Ron Yorston Signed-off-by: Denys Vlasenko --- diff --git a/networking/ssl_client.c b/networking/ssl_client.c index d479846d7..315071206 100644 --- a/networking/ssl_client.c +++ b/networking/ssl_client.c @@ -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;