aboutsummaryrefslogtreecommitdiff
path: root/print-snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-snmp.c')
-rw-r--r--print-snmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-snmp.c b/print-snmp.c
index a38fee2e..6aae34ca 100644
--- a/print-snmp.c
+++ b/print-snmp.c
@@ -1217,7 +1217,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
@@ -1237,7 +1237,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;