netfilter: xt_HMARK: potential NULL dereference in get_inner_hdr()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 12 May 2012 01:00:03 +0000 (01:00 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 16 May 2012 22:56:33 +0000 (00:56 +0200)
commit58618115492711d99fbccb79c5317299e32231fe
tree6fd9fe61601aee724c16d2e5d26d5219e54fc042
parent1f27e2516c1d95ae19024bec5be68a3f489cc47e
netfilter: xt_HMARK: potential NULL dereference in get_inner_hdr()

There is a typo in the error checking and "&&" was used instead of "||".
If skb_header_pointer() returns NULL then it leads to a NULL
dereference.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_HMARK.c