summaryrefslogtreecommitdiff
path: root/common/options.c
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2010-02-02 00:44:06 +0000
committerShawn Routhier <sar@isc.org>2010-02-02 00:44:06 +0000
commita35285748d900c9bc65cf57f99bdc548e626171e (patch)
treea9dda4dfb2a8a75f2f13f75e9244461c643b5ba1 /common/options.c
parent3c941d426df34fdfee70643eb91a360f2e7b22c2 (diff)
downloadisc-dhcp-a35285748d900c9bc65cf57f99bdc548e626171e.tar.gz
Clean up some compiler warnings
Diffstat (limited to 'common/options.c')
-rw-r--r--common/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/options.c b/common/options.c
index bc3282fd..52003ab6 100644
--- a/common/options.c
+++ b/common/options.c
@@ -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;