From: Roy Marples Date: Sun, 20 Dec 2020 07:08:08 +0000 (+0000) Subject: DHCP: Fix reading RENEW messages from inet socket X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54d8f218061008278c07fda7abff06c4a2c31d2c;p=thirdparty%2Fdhcpcd.git DHCP: Fix reading RENEW messages from inet socket It helps to use the correct buffer to store the control message .... --- diff --git a/src/dhcp.c b/src/dhcp.c index 6333c27c..84006a94 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -3521,7 +3521,7 @@ dhcp_readudp(struct dhcpcd_ctx *ctx, struct interface *ifp) struct msghdr msg = { .msg_name = &from, .msg_namelen = sizeof(from), .msg_iov = &iov, .msg_iovlen = 1, - .msg_control = buf, .msg_controllen = sizeof(cmsgbuf.buf), + .msg_control = cmsgbuf.buf, .msg_controllen = sizeof(cmsgbuf.buf), }; int s; ssize_t bytes;