]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-snmp.c
DNS: Sync types with IANA
[tcpdump] / print-snmp.c
index a38fee2e4f25970a7035553a2918f67c5e5e78ef..6aae34caa7de1b90ab54557e30feb66c7cd90bcf 100644 (file)
@@ -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;