diff options
-rw-r--r-- | sbin/ipfw/ipfw2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index 498da22e6599..fb1d9a4a180b 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -4021,7 +4021,8 @@ chkarg: NEED1("missing forward address[:port]"); - if (strncmp(*av, "tablearg", 8) == 0) + if (strncmp(*av, "tablearg", 8) == 0 && + ((*av)[8] == '\0' || (*av)[8] == ',' || (*av)[8] == ':')) memcpy(++(*av), "0.0.0.0", 7); /* |