[NETFILTER]: nf_nat: fix memset error
The size passing to memset is the size of a pointer. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d71209ded2
commit
e0bf9cf15f
1 changed files with 1 additions and 1 deletions
|
@ -681,7 +681,7 @@ static int clean_nat(struct nf_conn *i, void *data)
|
|||
|
||||
if (!nat)
|
||||
return 0;
|
||||
memset(nat, 0, sizeof(nat));
|
||||
memset(nat, 0, sizeof(*nat));
|
||||
i->status &= ~(IPS_NAT_MASK | IPS_NAT_DONE_MASK | IPS_SEQ_ADJUST);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue