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
commit002e7ccc2ade2379d4d5d1e8b9a5f6a3fc448d64 (patch)
treea11f5d7b49a8e52f341ff52a109904c7a2aa5a48
parentbd559f96fe28f468b8544bd6cc16c22fe706e397 (diff)
downloaddhcpcd-002e7ccc2ade2379d4d5d1e8b9a5f6a3fc448d64.tar.xz
DHCP: Fix reading RENEW messages from inet socket
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;