summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/readconf.c b/readconf.c
index 144a7602b..241185c65 100644
--- a/readconf.c
+++ b/readconf.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: readconf.c,v 1.73 2001/04/12 19:39:27 markus Exp $"); 15RCSID("$OpenBSD: readconf.c,v 1.74 2001/04/12 20:09:37 stevesk Exp $");
16 16
17#include "ssh.h" 17#include "ssh.h"
18#include "xmalloc.h" 18#include "xmalloc.h"
@@ -555,10 +555,10 @@ parse_int:
555 arg = strdelim(&s); 555 arg = strdelim(&s);
556 if (!arg || *arg == '\0') 556 if (!arg || *arg == '\0')
557 fatal("%.200s line %d: Missing argument.", filename, linenum); 557 fatal("%.200s line %d: Missing argument.", filename, linenum);
558 if (arg[0] < '0' || arg[0] > '9') 558 fwd_port = a2port(arg);
559 if (fwd_port == 0)
559 fatal("%.200s line %d: Badly formatted port number.", 560 fatal("%.200s line %d: Badly formatted port number.",
560 filename, linenum); 561 filename, linenum);
561 fwd_port = atoi(arg);
562 arg = strdelim(&s); 562 arg = strdelim(&s);
563 if (!arg || *arg == '\0') 563 if (!arg || *arg == '\0')
564 fatal("%.200s line %d: Missing second argument.", 564 fatal("%.200s line %d: Missing second argument.",
@@ -574,10 +574,10 @@ parse_int:
574 arg = strdelim(&s); 574 arg = strdelim(&s);
575 if (!arg || *arg == '\0') 575 if (!arg || *arg == '\0')
576 fatal("%.200s line %d: Missing argument.", filename, linenum); 576 fatal("%.200s line %d: Missing argument.", filename, linenum);
577 if (arg[0] < '0' || arg[0] > '9') 577 fwd_port = a2port(arg);
578 if (fwd_port == 0)
578 fatal("%.200s line %d: Badly formatted port number.", 579 fatal("%.200s line %d: Badly formatted port number.",
579 filename, linenum); 580 filename, linenum);
580 fwd_port = atoi(arg);
581 arg = strdelim(&s); 581 arg = strdelim(&s);
582 if (!arg || *arg == '\0') 582 if (!arg || *arg == '\0')
583 fatal("%.200s line %d: Missing second argument.", 583 fatal("%.200s line %d: Missing second argument.",
@@ -594,10 +594,10 @@ parse_int:
594 if (!arg || *arg == '\0') 594 if (!arg || *arg == '\0')
595 fatal("%.200s line %d: Missing port argument.", 595 fatal("%.200s line %d: Missing port argument.",
596 filename, linenum); 596 filename, linenum);
597 if (arg[0] < '0' || arg[0] > '9') 597 fwd_port = a2port(arg);
598 if (fwd_port == 0)
598 fatal("%.200s line %d: Badly formatted port number.", 599 fatal("%.200s line %d: Badly formatted port number.",
599 filename, linenum); 600 filename, linenum);
600 fwd_port = atoi(arg);
601 add_local_forward(options, fwd_port, "socks4", 0); 601 add_local_forward(options, fwd_port, "socks4", 0);
602 break; 602 break;
603 603