From: Ted Lemon Date: Wed, 4 Jun 1997 20:59:40 +0000 (+0000) Subject: Lose message on short icmp_echoreplies X-Git-Tag: DHCP-970605~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf09117b89e968df8f128af8e8d318afca6555d3;p=thirdparty%2Fdhcp.git Lose message on short icmp_echoreplies --- diff --git a/common/icmp.c b/common/icmp.c index 92332fbc0..590828426 100644 --- a/common/icmp.c +++ b/common/icmp.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: icmp.c,v 1.6 1997/06/03 02:12:20 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; +"$Id: icmp.c,v 1.7 1997/06/04 20:59:40 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -149,8 +149,9 @@ void icmp_echoreply (protocol) warn ("icmp_echoreply: %m"); return; } + + /* Probably not for us. */ if (status < (sizeof (struct ip)) + (sizeof *icfrom)) { - warn ("icmp_echoreply: short packet"); return; }