diff options
author | guy <guy> | 2004-03-24 00:56:11 +0000 |
---|---|---|
committer | guy <guy> | 2004-03-24 00:56:11 +0000 |
commit | 9bf8133f8d24a525b01d0bf581378882e2cd467b (patch) | |
tree | 1d4df86bb912e6cb28eacbf43ef77453c3bd52fa /print-igmp.c | |
parent | d3d90f29e50f07c62e58b30016bf169fc96e5b54 (diff) | |
download | tcpdump-9bf8133f8d24a525b01d0bf581378882e2cd467b.tar.gz |
Add bounds checking.
Diffstat (limited to 'print-igmp.c')
-rw-r--r-- | print-igmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/print-igmp.c b/print-igmp.c index b0f9fc45..a8485629 100644 --- a/print-igmp.c +++ b/print-igmp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-igmp.c,v 1.14 2003-11-19 09:42:04 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-igmp.c,v 1.15 2004-03-24 00:59:16 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -300,6 +300,7 @@ igmp_print(register const u_char *bp, register u_int len) print_igmpv3_report(bp, len); break; case 0x17: + TCHECK2(bp[4], 4); (void)printf("igmp leave %s", ipaddr_string(&bp[4])); break; case 0x13: |