Skip to content

Commit

Permalink
netfilter: xt_string: Remove unnecessary initialization of struct ts_…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Bojan Prtvar authored and Pablo Neira Ayuso committed Sep 9, 2014
1 parent 5fcf0cf commit c435201
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/netfilter/xt_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c435201

Please sign in to comment.