diff options
| author | Roy Marples <roy@marples.name> | 2014-11-25 20:40:00 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-11-25 20:40:00 +0000 |
| commit | fddd88aed45b2b9573f14c46ebcdd01514417d23 (patch) | |
| tree | 77b329cf4b18b3936d7c5d425165eb031db280bb /ipv6nd.c | |
| parent | 465083d9e04480ec22928e35a1c6ee3493c663ad (diff) | |
| download | dhcpcd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
