summaryrefslogtreecommitdiffstats
path: root/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-11-25 20:40:00 +0000
committerRoy Marples <roy@marples.name>2014-11-25 20:40:00 +0000
commitfddd88aed45b2b9573f14c46ebcdd01514417d23 (patch)
tree77b329cf4b18b3936d7c5d425165eb031db280bb /ipv6nd.c
parent465083d9e04480ec22928e35a1c6ee3493c663ad (diff)
downloaddhcpcd-fddd88aed45b2b9573f14c46ebcdd01514417d23.tar.xz
Zero length UDP packets are not an error condition on the socket.
Thanks to Michał Kępień.
Diffstat (limited to 'ipv6nd.c')
-rw-r--r--ipv6nd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipv6nd.c b/ipv6nd.c
index 574e69a2..56a7a4b3 100644
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -1500,7 +1500,7 @@ ipv6nd_handledata(void *arg)
ctx->rcvhdr.msg_controllen = CMSG_SPACE(sizeof(struct in6_pktinfo)) +
CMSG_SPACE(sizeof(int));
len = recvmsg(ctx->nd_fd, &ctx->rcvhdr, 0);
- if (len == -1 || len == 0) {
+ if (len == -1) {
syslog(LOG_ERR, "recvmsg: %m");
eloop_event_delete(dhcpcd_ctx->eloop, ctx->nd_fd, 0);
close(ctx->nd_fd);