From dcdc2f61b19dca2c7fc439e43c64fb0fc4c63e97 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 26 Oct 2018 10:16:00 +0900 Subject: [PATCH] sd-device: fix wrong assertion (#10530) --- src/libsystemd/sd-device/device-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-device/device-monitor.c b/src/libsystemd/sd-device/device-monitor.c index 9c534a0dd6b..f79a8497bae 100644 --- a/src/libsystemd/sd-device/device-monitor.c +++ b/src/libsystemd/sd-device/device-monitor.c @@ -91,7 +91,7 @@ _public_ int sd_device_monitor_set_receive_buffer_size(sd_device_monitor *m, siz int r, n = (int) size; assert_return(m, -EINVAL); - assert_return((size_t) n != size, -EINVAL); + assert_return((size_t) n == size, -EINVAL); if (setsockopt_int(m->sock, SOL_SOCKET, SO_RCVBUF, n) < 0) { r = setsockopt_int(m->sock, SOL_SOCKET, SO_RCVBUFFORCE, n);