From: Ted Lemon Date: Thu, 25 Jun 1998 02:55:56 +0000 (+0000) Subject: Clear out unused portion of icmp packet. X-Git-Tag: carrel-2~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34436cc3b00f9febb5d287fc0d966ffc05b1e065;p=thirdparty%2Fdhcp.git Clear out unused portion of icmp packet. --- diff --git a/common/icmp.c b/common/icmp.c index b5d02f595..2fe3ee3fc 100644 --- a/common/icmp.c +++ b/common/icmp.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: icmp.c,v 1.9 1998/03/16 06:13:01 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; +"$Id: icmp.c,v 1.10 1998/06/25 02:55:56 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -117,6 +117,7 @@ int icmp_echorequest (addr) #else icmp.icmp_id = (u_int32_t)addr; #endif + memset (&icmp.icmp_dun, 0, sizeof icmp.icmp_dun); icmp.icmp_cksum = wrapsum (checksum ((unsigned char *)&icmp, sizeof icmp, 0));