]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add bounds checking.
authorguy <guy>
Wed, 24 Mar 2004 00:14:09 +0000 (00:14 +0000)
committerguy <guy>
Wed, 24 Mar 2004 00:14:09 +0000 (00:14 +0000)
print-icmp6.c

index 6f4697f9375dd51eb7b9a72bcd00b9c3c9a33660..72b686ba832eb6d36bed65be86046c5c8e2a07a4 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.72.2.3 2003-11-19 01:28:19 guy Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.72.2.4 2004-03-24 00:14:09 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -383,6 +383,7 @@ icmp6_print(const u_char *bp, u_int length, const u_char *bp2, int fragmented)
                TCHECK(RDR(dp)->nd_rd_dst);
                printf("icmp6: redirect %s",
                    getname6((const u_char *)&RDR(dp)->nd_rd_dst));
+               TCHECK(RDR(dp)->nd_rd_target);
                printf(" to %s",
                    getname6((const u_char*)&RDR(dp)->nd_rd_target));
 #define REDIRECTLEN 40