string match negation fix
Subsystems (2)
PATCH 1/1 string match negation fix
The xt_string match is broken with ! negation.
This resolves a portion of netfilter bugzilla #497.
Phil
Signed-off-by Phil Oester <[email protected]>
net/netfilter/xt_string.c +1 -1
@@ -37,7 +37,7 @@return (skb_find_text ((struct sk_buff *)skb, conf->from_offset, conf->to_offset, conf->config, &state) - !=UINT_MAX ) && !conf->invert; + !=UINT_MAX ) ^ conf->invert; }#define STRING_TEXT_PRIV (m) ((struct xt_string_info *) m)
Patrick McHardy
AppliedQuoted 3 lines · Phil Oester
The
xt_stringmatch is broken with ! negation.This resolves a portion of netfilter bugzilla #497.
Applied, thanks Phil.