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:
@@ -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>
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user