Permalink
Browse files

core: zero size notify messages are OK

  • Loading branch information...
poettering committed Jan 23, 2015
1 parent 0c0cdb0 commit d875aa8ce10b458dc218c0d98f4a82c8904d6d03
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/core/manager.c
@@ -1521,8 +1521,6 @@ static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t
return -errno;
}
if (n == 0)
return -ECONNRESET;
for (cmsg = CMSG_FIRSTHDR(&msghdr); cmsg; cmsg = CMSG_NXTHDR(&msghdr, cmsg)) {
if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS) {

0 comments on commit d875aa8

Please sign in to comment.