X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/1fa489d1cfe41b1a8c2827be4927ae539cd4016e..b880c9180df6ed3f0aaf2907625814c94b27e932:/print-icmp.c diff --git a/print-icmp.c b/print-icmp.c index 40522ed9..a8e21b0a 100644 --- a/print-icmp.c +++ b/print-icmp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-icmp.c,v 1.73.2.2 2003-11-16 08:51:24 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-icmp.c,v 1.73.2.3 2004-03-24 00:56:34 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -305,6 +305,7 @@ icmp_print(const u_char *bp, u_int plen, const u_char *bp2, int fragmented) oip = &dp->icmp_ip; hlen = IP_HL(oip) * 4; ouh = (struct udphdr *)(((u_char *)oip) + hlen); + TCHECK(ouh->uh_dport); dport = EXTRACT_16BITS(&ouh->uh_dport); switch (oip->ip_p) {