netsniff-ng: dissector_sll: Fix potential NULL dereference
commit98ed6adf069d0a1b89cd6f90657fce1136020bee
authorTobias Klauser <tklauser@distanz.ch>
Tue, 21 Jul 2015 07:22:28 +0000 (21 09:22 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 21 Jul 2015 07:22:28 +0000 (21 09:22 +0200)
tree467ffa92bbbf68c81cc4236c703a242c980e5a0c
parentb645a4371c3173fedff7274211b6834195a7ac18
netsniff-ng: dissector_sll: Fix potential NULL dereference

pkt is dereferenced before it is checked. Move the dereference after the
the check.

Detected by the Coverity Scanner (CID 1312074 & 1312075).

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
dissector_sll.c