diff options
author | Roy Marples <roy@marples.name> | 2020-12-20 07:08:08 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2020-12-20 07:08:08 +0000 |
commit | 54d8f218061008278c07fda7abff06c4a2c31d2c (patch) | |
tree | a11f5d7b49a8e52f341ff52a109904c7a2aa5a48 | |
parent | 8a0eb8db023be32c112847582446be48ee34dbf0 (diff) | |
download | dhcpcd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |