chiark / gitweb /
sd_pid_notify_with_fds: fix computing msg_controllen
authorMaciej Wereski <m.wereski@partner.samsung.com>
Tue, 8 Sep 2015 13:36:30 +0000 (15:36 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 29 Mar 2017 08:45:09 +0000 (10:45 +0200)
commitbfe9c16671c456eb4c12e0ec01564c43a73c3127
tree8c080291d747315796964dbbbc9e35b8f745ba10
parenteeeefb47fde1f010e14c9f0a6104bba011ce9b20
sd_pid_notify_with_fds: fix computing msg_controllen

CMSG_SPACE(0) may return value other than 0. This caused sendmsg to fail
with EINVAL, when have_pid or n_fds was 0.
src/libelogind/sd-daemon/sd-daemon.c