mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
Clean up some compiler warnings
This commit is contained in:
@@ -3782,13 +3782,13 @@ packet6_len_okay(const char *packet, int len) {
|
||||
}
|
||||
if ((packet[0] == DHCPV6_RELAY_FORW) ||
|
||||
(packet[0] == DHCPV6_RELAY_REPL)) {
|
||||
if (len >= sizeof(struct dhcpv6_relay_packet)) {
|
||||
if (len >= offsetof(struct dhcpv6_relay_packet, options)) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
if (len >= sizeof(struct dhcpv6_packet)) {
|
||||
if (len >= offsetof(struct dhcpv6_packet, options)) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user