[systemd-devel] [PATCH 3/3] bus-socket: fix CID 996290 Unchecked return value
David Herrmann
dh.herrmann at gmail.com
Mon Nov 17 02:00:35 PST 2014
Hi
On Tue, Nov 11, 2014 at 9:06 AM, Susant Sahani <susant at redhat.com> wrote:
> ---
> src/libsystemd/sd-bus/bus-socket.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied!
Thanks
David
> diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c
> index d124d9a..662bf1c 100644
> --- a/src/libsystemd/sd-bus/bus-socket.c
> +++ b/src/libsystemd/sd-bus/bus-socket.c
> @@ -610,10 +610,10 @@ void bus_socket_setup(sd_bus *b) {
> /* Enable SO_PASSCRED + SO_PASSEC. We try this on any
> * socket, just in case. */
> enable = !b->bus_client;
> - setsockopt(b->input_fd, SOL_SOCKET, SO_PASSCRED, &enable, sizeof(enable));
> + (void) setsockopt(b->input_fd, SOL_SOCKET, SO_PASSCRED, &enable, sizeof(enable));
>
> enable = !b->bus_client && (b->attach_flags & KDBUS_ATTACH_SECLABEL);
> - setsockopt(b->input_fd, SOL_SOCKET, SO_PASSSEC, &enable, sizeof(enable));
> + (void) setsockopt(b->input_fd, SOL_SOCKET, SO_PASSSEC, &enable, sizeof(enable));
>
> /* Increase the buffers to 8 MB */
> fd_inc_rcvbuf(b->input_fd, SNDBUF_SIZE);
> --
> 2.1.0
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
More information about the systemd-devel
mailing list