projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18b6fe6
)
[NETFILTER]: xt_string: fix negation
author
Phil Oester
<kernel@linuxace.com>
Mon, 14 Aug 2006 01:05:35 +0000
(18:05 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 14 Aug 2006 01:05:35 +0000
(18:05 -0700)
The xt_string match is broken with ! negation.
This resolves a portion of netfilter bugzilla #497.
Signed-off-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_string.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/xt_string.c
b/net/netfilter/xt_string.c
index d8e3891b5f8bd0aa9287fd8a7af88d4a6514a6e9..275330fcdaaab9dfebba281e3baf5e80671c884c 100644
(file)
--- a/
net/netfilter/xt_string.c
+++ b/
net/netfilter/xt_string.c
@@
-37,7
+37,7
@@
static int match(const struct sk_buff *skb,
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)