From: Ted Lemon Date: Wed, 20 Sep 2000 10:08:51 +0000 (+0000) Subject: Oops, left something out X-Git-Tag: V3-BETA-2-PATCH-5~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b29db8aac19c9f4921101805b62119e33af97b43;p=thirdparty%2Fdhcp.git Oops, left something out --- diff --git a/common/packet.c b/common/packet.c index 000723949..6c7ee8864 100644 --- a/common/packet.c +++ b/common/packet.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: packet.c,v 1.35 2000/09/20 09:03:34 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: packet.c,v 1.36 2000/09/20 10:08:51 mellon Exp $ Copyright (c) 1996-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -299,6 +299,8 @@ ssize_t decode_udp_ip_header (interface, buf, bufix, from, data, buflen) if (len + data > buf + bufix + buflen) { log_debug ("dropping packet with bogus uh_ulen %d", len + sizeof *udp); + return -1; + } } usum = udp -> uh_sum;