nf_nat_core: fix memset size error
Subsystems (2)
PATCH 1/1 nf_nat_core: fix memset size error
Hi,
The size passing to memset is the size of a pointer.
Signed-off-by Li Zefan <[email protected]>
--- net/ipv4/netfilter/nf_nat_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/ipv4/netfilter/nf_nat_core.c +1 -1
@@ -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 ; }
Signature · 1 line
1.5.3.rc7
Patrick McHardy
AppliedQuoted 6 lines · Li Zefan
Hi,
The size passing to memset is the size of a pointer.
Signed-off-by Li Zefan <[email protected]>
Applied, thanks Li.