From 54d8f218061008278c07fda7abff06c4a2c31d2c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 20 Dec 2020 07:08:08 +0000 Subject: [PATCH] DHCP: Fix reading RENEW messages from inet socket It helps to use the correct buffer to store the control message .... --- src/dhcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2