diff options
Diffstat (limited to 'userspace')
-rw-r--r-- | userspace/ebtables2/extensions/ebt_log.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/userspace/ebtables2/extensions/ebt_log.c b/userspace/ebtables2/extensions/ebt_log.c index 07a5fe9..7429479 100644 --- a/userspace/ebtables2/extensions/ebt_log.c +++ b/userspace/ebtables2/extensions/ebt_log.c @@ -116,6 +116,8 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, ebt_print_error2("Unexpected `!' after --log-prefix"); if (strlen(optarg) > sizeof(loginfo->prefix) - 1) ebt_print_error2("Prefix too long"); + if (strchr(optarg, '\"')) + ebt_print_error2("Use of \\\" is not allowed in the prefix"); strcpy(loginfo->prefix, optarg); break; |