]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Oops, left something out
authorTed Lemon <source@isc.org>
Wed, 20 Sep 2000 10:08:51 +0000 (10:08 +0000)
committerTed Lemon <source@isc.org>
Wed, 20 Sep 2000 10:08:51 +0000 (10:08 +0000)
common/packet.c

index 0007239499b16e8cb6d3622c48726513a71b4e08..6c7ee8864ec77e658e789e9f30edb0c10718ba78 100644 (file)
@@ -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;