X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/59241d98166c2cbfe19dd1fa194212fccacc7dc0..e69972a8ef1ddbf73924e42f76f53a1f9d0aab0a:/print-snmp.c diff --git a/print-snmp.c b/print-snmp.c index 2819e855..1fc08f38 100644 --- a/print-snmp.c +++ b/print-snmp.c @@ -1197,7 +1197,7 @@ varbind_print(netdissect_options *ndo, u_short pduid, const u_char *np, u_int length) { struct be elem; - int count = 0, ind; + int count = 0; #ifdef USE_LIBSMI SmiNode *smiNode = NULL; #endif @@ -1217,7 +1217,7 @@ varbind_print(netdissect_options *ndo, length = elem.asnlen; np = (const u_char *)elem.data.raw; - for (ind = 1; length > 0; ind++) { + while (length) { const u_char *vbend; u_int vblength;