diff options
Diffstat (limited to 'xtables.c')
-rw-r--r-- | xtables.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1502,6 +1502,9 @@ xtables_parse_protocol(const char *s) else { unsigned int i; for (i = 0; i < ARRAY_SIZE(xtables_chain_protos); ++i) { + if (xtables_chain_protos[i].name == NULL) + continue; + if (strcmp(s, xtables_chain_protos[i].name) == 0) { proto = xtables_chain_protos[i].num; break; |