aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-03-20 11:41:28 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-03-26 02:05:47 +0200
commit2afdcc77ccdd60f2632d2ee79c47517536a14a07 (patch)
tree1a2e36eb14c62c01cded7a7de785af9beeefe6fd
parentc74f1d2cb48c6a9216ea901178e43c02ac7da0dc (diff)
downloadbusybox-w32-1_28_2.tar.gz
busybox-w32-1_28_2.tar.bz2
busybox-w32-1_28_2.zip
ssl_client: fix option parsing1_28_2
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>
-rw-r--r--networking/ssl_client.c2
1 files changed, 1 insertions, 1 deletions
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)
30 // INIT_G(); 30 // INIT_G();
31 31
32 tls = new_tls_state(); 32 tls = new_tls_state();
33 opt = getopt32(argv, "s:#r:#n:", &tls->ofd, &tls->ifd, &sni); 33 opt = getopt32(argv, "s:+r:+n:", &tls->ofd, &tls->ifd, &sni);
34 if (!(opt & 2)) { 34 if (!(opt & 2)) {
35 /* -r N defaults to -s N */ 35 /* -r N defaults to -s N */
36 tls->ifd = tls->ofd; 36 tls->ifd = tls->ofd;