]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-lldp.c
CHANGES: Add a change backported to 4.99
[tcpdump] / print-lldp.c
index 2df9aca3ac21fa31e66249f8fa728c4e82b3bfdd..c12e37d037275431478c438845beec293bcb4425 100644 (file)
@@ -19,9 +19,7 @@
 
 /* \summary: IEEE 802.1ab Link Layer Discovery Protocol (LLDP) printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -1088,7 +1086,7 @@ lldp_private_tia_print(netdissect_options *ndo,
             tptr = tptr + 9;
 
             /* Decode each civic address element */
-            while (lci_len > 0) {
+            while (lci_len != 0) {
                 if (lci_len < 2) {
                     return hexdump;
                 }