netsniff-ng: dissector_sll: Remove NULL check alltogether
commitf4024343a161f50b73f106dd3dea24d68a934d5a
authorTobias Klauser <tklauser@distanz.ch>
Tue, 21 Jul 2015 09:38:38 +0000 (21 11:38 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 21 Jul 2015 09:38:38 +0000 (21 11:38 +0200)
treedf923660ac468be24040ff3bbc7136b82e17551c
parent820d8f23af148240e0266967ee460098a4855d94
netsniff-ng: dissector_sll: Remove NULL check alltogether

The check for pkt being NULL is not needed since the packet is allocated
in dissector_entry_point() and panic()'s if the allocation fails.
pkt->sll is also guaranteed to be non-NULL by all call sites of
dissector_entry_point().

This is the proper fix for CIDs 1312074 and 1312075.

Noticed-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
dissector_sll.c