ipvs: ip_vs_sh: ip_vs_sh_get_port: check skb_header_pointer for NULL
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 6 Aug 2013 09:20:23 +0000 (11:20 +0200)
committerSimon Horman <horms@verge.net.au>
Tue, 6 Aug 2013 23:57:57 +0000 (08:57 +0900)
commit54e35cc52346149a7bce8a2f622e215ed17bb56d
tree860c66bbca9367ce859c7bc230b342a846be7797
parent70e3ca79cd0e98d4191aa10b3393c23a9b84a2e8
ipvs: ip_vs_sh: ip_vs_sh_get_port: check skb_header_pointer for NULL

skb_header_pointer could return NULL, so check for it as we do it
everywhere else in ipvs code. This fixes a coverity warning.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_sh.c