summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-12-20 07:08:08 +0000
committerRoy Marples <roy@marples.name>2020-12-20 07:08:08 +0000
commit54d8f218061008278c07fda7abff06c4a2c31d2c (patch)
treea11f5d7b49a8e52f341ff52a109904c7a2aa5a48
parent8a0eb8db023be32c112847582446be48ee34dbf0 (diff)
downloaddhcpcd-8.tar.xz
DHCP: Fix reading RENEW messages from inet socketdhcpcd-8
It helps to use the correct buffer to store the control message ....
-rw-r--r--src/dhcp.c2
1 files changed, 1 insertions, 1 deletions
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;