diff --git a/src/dhcp.c b/src/dhcp.c index 73c9bee6..e2d48244 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -1155,10 +1155,10 @@ make_message(struct bootp **bootpm, const struct interface *ifp, uint8_t type) lp = rfc3396_zero(&rctx); if (lp == NULL) goto toobig; - if (rfc3396_write_byte(&rctx, + if (rfc3396_write_byte(&rctx, (uint8_t)vivco->len) == -1) goto toobig; - if (rfc3396_write(&rctx, + if (rfc3396_write(&rctx, vivco->data, vivco->len) == -1) goto toobig; *lp = (uint8_t)(*lp + vivco->len + 1);