summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd/bootpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/bootpd/bootpd.c')
-rw-r--r--libexec/bootpd/bootpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/bootpd/bootpd.c b/libexec/bootpd/bootpd.c
index aac6263..54de708 100644
--- a/libexec/bootpd/bootpd.c
+++ b/libexec/bootpd/bootpd.c
@@ -1292,10 +1292,10 @@ dovend_rfc1048(bp, hp, bootsize)
p += len;
}
- if (msgsz > sizeof(*bp)) {
+ if (msgsz > sizeof(*bp) + BP_MSG_OVERHEAD) {
if (debug > 1)
report(LOG_INFO, "request has DHCP msglen=%d", msgsz);
- pktlen = msgsz;
+ pktlen = msgsz - BP_MSG_OVERHEAD;
}
}
}
OpenPOWER on IntegriCloud