diff options
author | Ted Lemon <source@isc.org> | 1997-06-04 20:59:40 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1997-06-04 20:59:40 +0000 |
commit | cf09117b89e968df8f128af8e8d318afca6555d3 (patch) | |
tree | cdd27a1a1d84e56e277a6fe2c7080e7105a05a4b /common/icmp.c | |
parent | 907344c2cec77c3f1daf4ca8715bccd6aa7ead16 (diff) | |
download | isc-dhcp-cf09117b89e968df8f128af8e8d318afca6555d3.tar.gz |
Lose message on short icmp_echoreplies
Diffstat (limited to 'common/icmp.c')
-rw-r--r-- | common/icmp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/icmp.c b/common/icmp.c index 92332fbc..59082842 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; } |