diff options
author | Ron Yorston <rmy@pobox.com> | 2018-03-20 11:41:28 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-03-20 11:41:51 +0100 |
commit | b5820d9fd88bb6cb1dfd1a934a3d346336d5cac2 (patch) | |
tree | d39a02faed461606c969e631c41e68da9e096250 | |
parent | b3e98b1ccc86ae6a4b3ac242d48412a89ca8b8ed (diff) | |
download | busybox-w32-b5820d9fd88bb6cb1dfd1a934a3d346336d5cac2.tar.gz busybox-w32-b5820d9fd88bb6cb1dfd1a934a3d346336d5cac2.tar.bz2 busybox-w32-b5820d9fd88bb6cb1dfd1a934a3d346336d5cac2.zip |
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>
-rw-r--r-- | networking/ssl_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ssl_client.c b/networking/ssl_client.c index eb84e7726..875352d18 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, "es:#r:#n:", &tls->ofd, &tls->ifd, &sni); | 33 | opt = getopt32(argv, "es:+r:+n:", &tls->ofd, &tls->ifd, &sni); |
34 | if (!(opt & (1<<2))) { | 34 | if (!(opt & (1<<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; |