dissector: lldp: NULL check before dereference
commit10a80a61d67516c0ba4c13a7c07e9ebfa6fab9c5
authorTobias Klauser <tklauser@distanz.ch>
Sun, 12 May 2013 10:33:53 +0000 (12 12:33 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Sun, 12 May 2013 10:33:53 +0000 (12 12:33 +0200)
treef69e0c17e7170477a01e2f73c3d90483f4e4d46a
parent21adfd2ba4324bb8575b17ecd76c0f3b3988246e
dissector: lldp: NULL check before dereference

Check return value of pkt_pull before dereferencing it (even though we
check the packet length before and pkt_pull _should_ never return NULL).
This was discovered by the coverity scanner.

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