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????
This commit is contained in:
parent
f0dbdbbf11
commit
8f6466e847
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6371
@ -403,9 +403,6 @@ if (*av==NULL || !strncmp(*av,CH_AC,strlen(CH_AC))) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int get_num(str,tab)
|
int get_num(str,tab)
|
||||||
char *str;
|
char *str;
|
||||||
char tab[][MAXSTR];
|
char tab[][MAXSTR];
|
||||||
@ -665,6 +662,10 @@ int p_num=0,ir=0;
|
|||||||
if (ir)
|
if (ir)
|
||||||
flags|=IP_FW_F_DRNG;
|
flags|=IP_FW_F_DRNG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (*(++av)==NULL)
|
||||||
|
goto no_tail;
|
||||||
|
|
||||||
no_dst_ports:
|
no_dst_ports:
|
||||||
if (strncmp(*av,S_SEP3,strlen(S_SEP3))) {
|
if (strncmp(*av,S_SEP3,strlen(S_SEP3))) {
|
||||||
show_usage();
|
show_usage();
|
||||||
|
Loading…
Reference in New Issue
Block a user