core: zero size notify messages are OK

This commit is contained in:
Lennart Poettering
2015-01-23 01:17:55 +01:00
parent 0c0cdb06c1
commit d875aa8ce1
-2
View File
@@ -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) {