summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2020-12-18 12:27:28 +0000
committermartin <martin@NetBSD.org>2020-12-18 12:27:28 +0000
commite506a52f3d43dab319bb7b4d426fcd2ef0b975a3 (patch)
tree75d9ecf1901165e5fb785cf1743dee80efe78f86 /external
parent38adfe8d5acb302ba7d15c54a8eea6c8f07036de (diff)
Apply patch, requested by roy in ticket #1154:
external/bsd/dhcpcd/dist/src/dhcp.c (apply patch) Fix reading of UDP messages via inet socket rather than BPF. This fixes RENEW messages not being read correctly.
Diffstat (limited to 'external')
-rw-r--r--external/bsd/dhcpcd/dist/src/dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/bsd/dhcpcd/dist/src/dhcp.c b/external/bsd/dhcpcd/dist/src/dhcp.c
index 6333c27c4c0..84006a94dc7 100644
--- a/external/bsd/dhcpcd/dist/src/dhcp.c
+++ b/external/bsd/dhcpcd/dist/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;