diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2004-11-14 13:22:29 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2004-11-14 13:22:29 +0000 |
commit | 6dec0fc2518f4f66243f649fbe4d6ee348d51f1a (patch) | |
tree | 0586953ef11011674341046c4b6a4689313b8f67 | |
parent | 044d4d62b52c75a27d14cbb0592f4727ae76cf1a (diff) |
prevent segfault
-rw-r--r-- | userspace/ebtables2/useful_functions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/userspace/ebtables2/useful_functions.c b/userspace/ebtables2/useful_functions.c index e0b1e4c..a36062e 100644 --- a/userspace/ebtables2/useful_functions.c +++ b/userspace/ebtables2/useful_functions.c @@ -151,6 +151,8 @@ int ebt_invert = 0; */ int ebt_check_inverse(const char option[]) { + if (!option) + return ebt_invert; if (strcmp(option, "!") == 0) { if (ebt_invert == 1) ebt_print_error("double use of '!' not allowed"); |