summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index 6f5a146fe..0e2b7628e 100644
--- a/ssh.c
+++ b/ssh.c
@@ -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",