diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -427,9 +427,9 @@ again: | |||
427 | 427 | ||
428 | case 'L': | 428 | case 'L': |
429 | case 'R': | 429 | case 'R': |
430 | if (sscanf(optarg, "%5[0-9]:%255[^:]:%5[0-9]", | 430 | if (sscanf(optarg, "%5[0123456789]:%255[^:]:%5[0123456789]", |
431 | sfwd_port, buf, sfwd_host_port) != 3 && | 431 | sfwd_port, buf, sfwd_host_port) != 3 && |
432 | sscanf(optarg, "%5[0-9]/%255[^/]/%5[0-9]", | 432 | sscanf(optarg, "%5[0123456789]/%255[^/]/%5[0123456789]", |
433 | sfwd_port, buf, sfwd_host_port) != 3) { | 433 | sfwd_port, buf, sfwd_host_port) != 3) { |
434 | fprintf(stderr, | 434 | fprintf(stderr, |
435 | "Bad forwarding specification '%s'\n", | 435 | "Bad forwarding specification '%s'\n", |