summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-23 01:11:46 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-23 01:17:55 +0100
commitd875aa8ce10b458dc218c0d98f4a82c8904d6d03 (patch)
treeb0542d4c8c20998ad11a0b9b9bc3f9a49d0f822c /src/core
parent0c0cdb06c139b52ff103287f6909b3daa5b2dc54 (diff)
core: zero size notify messages are OK
Diffstat (limited to 'src/core')
-rw-r--r--src/core/manager.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index 947d431035..4f771396a0 100644
--- a/src/core/manager.c
+++ b/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) {