2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-02 23:35:23 +00:00

Add include for stddef.h and remove an extra space from dhcrelay.c

This commit is contained in:
Shawn Routhier
2010-02-02 19:58:18 +00:00
parent 3da71461ce
commit 69c1bf48d3
2 changed files with 2 additions and 1 deletions

View File

@@ -47,6 +47,7 @@
#define fd_set cygwin_fd_set #define fd_set cygwin_fd_set
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#include <sys/stddef.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -1483,7 +1483,7 @@ process_down6(struct packet *packet) {
if (!evaluate_option_cache(&relay_msg, packet, NULL, NULL, if (!evaluate_option_cache(&relay_msg, packet, NULL, NULL,
packet->options, NULL, packet->options, NULL,
&global_scope, oc, MDL) || &global_scope, oc, MDL) ||
(relay_msg.len < offsetof (struct dhcpv6_packet, options))) { (relay_msg.len < offsetof(struct dhcpv6_packet, options))) {
log_error("Can't evaluate relay-msg."); log_error("Can't evaluate relay-msg.");
return; return;
} }