hi all,
during introduction of all the great boundary checking
that guy & gang did contribute, a tiny bug has corrupted
the IP interface address TLV decoder.
the attached patch corrects this bug;
/hannes
Index: print-isoclns.c
===================================================================
RCS file: /tcpdump/master/tcpdump/print-isoclns.c,v
retrieving revision 1.29
diff -u -r1.29 print-isoclns.c
--- print-isoclns.c 2001/10/16 06:09:01 1.29
+++ print-isoclns.c 2001/10/29 07:33:30
@@ -1267,11 +1267,12 @@
case TLV_IPADDR:
printf("IP Interface address(es) (%u)",len);
i=len;
+ tptr=pptr;
while (i>0) {
- if (!TTEST2(*pptr, 4))
+ if (!TTEST2(*tptr, 4))
goto trunctlv;
- printf("\n\t\t\tIPv4 interface address: %s", ipaddr_string(pptr));
- pptr += 4;
+ printf("\n\t\t\tIPv4 interface address: %s", ipaddr_string(tptr));
+ tptr += 4;
i -= 4;
}
break;