X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/df5cba8d99ed9b99ecf1da9e4e0a115509209a91..HEAD:/print-snmp.c?ds=sidebyside diff --git a/print-snmp.c b/print-snmp.c index 42c9785a..e1cc9771 100644 --- a/print-snmp.c +++ b/print-snmp.c @@ -58,9 +58,7 @@ /* \summary: Simple Network Management Protocol (SNMP) printer */ -#ifdef HAVE_CONFIG_H #include -#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(" "); @@ -1070,7 +1068,7 @@ smi_print_value(netdissect_options *ndo, } if (NOTIFY_CLASS(pduid) && smiNode->access < SMI_ACCESS_NOTIFY) { - ND_PRINT("[notNotifyable]"); + ND_PRINT("[notNotifiable]"); } if (READ_CLASS(pduid) && smiNode->access < SMI_ACCESS_READ_ONLY) {