Mercurial > hg > dhcpcd
diff src/dhcp.c @ 5563:da781e97946d draft dhcpcd-8
DHCP: Fix reading RENEW messages from inet socket
It helps to use the correct buffer to store the control message ....
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sun, 20 Dec 2020 07:08:08 +0000 |
| parents | f5dbfb2af80c |
| children |
line wrap: on
line diff
--- a/src/dhcp.c Wed Jun 10 07:34:18 2020 +0100 +++ b/src/dhcp.c Sun Dec 20 07:08:08 2020 +0000 @@ -3521,7 +3521,7 @@ 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;
