mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
Oops, left something out
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user