mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
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>
This commit is contained in:
parent
5fcf0cf607
commit
c435201bed
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user