diff options
author | ugen <ugen@FreeBSD.org> | 1995-02-14 08:28:27 +0000 |
---|---|---|
committer | ugen <ugen@FreeBSD.org> | 1995-02-14 08:28:27 +0000 |
commit | c5bdd3a7299c685e2ea4ffd3f2f006aecb65387b (patch) | |
tree | 5bb6f0b7c75ba7c40738e02dc8558a7a09cfe9e4 /sbin/ipfw | |
parent | 9d86998fd66d6d0d9d27d2bc94acb161d0bf1f9d (diff) | |
download | FreeBSD-src-c5bdd3a7299c685e2ea4ffd3f2f006aecb65387b.zip FreeBSD-src-c5bdd3a7299c685e2ea4ffd3f2f006aecb65387b.tar.gz |
Fix for rather stupid bug by which you couldn't set
ports for the destination IP addr/port.
Nobody reported this btw , while a lot of other things reported-
probably ppl does not use destination ports at all????
Diffstat (limited to 'sbin/ipfw')
-rw-r--r-- | sbin/ipfw/ipfw.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c index 71a66cb..61744fd 100644 --- a/sbin/ipfw/ipfw.c +++ b/sbin/ipfw/ipfw.c @@ -403,9 +403,6 @@ if (*av==NULL || !strncmp(*av,CH_AC,strlen(CH_AC))) { - - - int get_num(str,tab) char *str; char tab[][MAXSTR]; @@ -665,6 +662,10 @@ no_src_ports: if (ir) flags|=IP_FW_F_DRNG; } + + if (*(++av)==NULL) + goto no_tail; + no_dst_ports: if (strncmp(*av,S_SEP3,strlen(S_SEP3))) { show_usage(); |