[PATCH][netfilter] Avoid a possible NULL pointer deref in recent_seq_open()

Patrick McHardy kaber at trash.net
Mon Jul 30 14:28:18 CEST 2007


Jesper Juhl wrote:
> There is a small problem in
>  net/ipv4/netfilter/ipt_recent.c::recent_seq_open().
> 
> If the call to seq_open() returns != 0 then the code calls 
> kfree(st) but then on the very next line proceeds to 
> dereference the pointer - not good.


Applied, thanks Jesper.




More information about the netfilter-devel mailing list