diff options
author | Bojan Prtvar <prtvar.b@gmail.com> | 2014-09-08 07:51:12 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-09-09 14:31:25 (GMT) |
commit | c435201bede79735c23d6961ce369034f193e633 (patch) | |
tree | 9ddc1bd71a42bc1666c0997ebee78f9b9ce93dc2 /net/netfilter/xt_string.c | |
parent | 5fcf0cf6073d4adb22e34cd1d14a6318699625a9 (diff) | |
download | linux-c435201bede79735c23d6961ce369034f193e633.tar.xz |
netfilter: xt_string: Remove unnecessary initialization of struct ts_state
The skb_find_text() accepts uninitialized textsearch state variable.
Signed-off-by: Bojan Prtvar <prtvar.b@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_string.c')
-rw-r--r-- | net/netfilter/xt_string.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/netfilter/xt_string.c b/net/netfilter/xt_string.c index d3c48b1..5699adb 100644 --- a/net/netfilter/xt_string.c +++ b/net/netfilter/xt_string.c @@ -29,7 +29,6 @@ string_mt(const struct sk_buff *skb, struct xt_action_param *par) struct ts_state state; bool invert; - memset(&state, 0, sizeof(struct ts_state)); invert = conf->u.v1.flags & XT_STRING_FLAG_INVERT; return (skb_find_text((struct sk_buff *)skb, conf->from_offset, |