]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-snmp.c
CI: Add warning exemptions for Sun C (suncc-5.15) on Solaris 10
[tcpdump] / print-snmp.c
index d975b4277cb954ea9827898f5fbb3060ef22d4fc..e1cc97711967a4cccf26e2aaa72fcad1108f6413 100644 (file)
@@ -58,9 +58,7 @@
 
 /* \summary: Simple Network Management Protocol (SNMP) printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -847,7 +845,7 @@ asn1_decode(u_char *p, u_int length)
        struct be elem;
        int i = 0;
 
-       while (i >= 0 && length > 0) {
+       while (i >= 0 && length != 0) {
                i = asn1_parse(ndo, p, length, &elem);
                if (i >= 0) {
                        ND_PRINT(" ");