1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 02:21:44 +03:00

sd-device: fix wrong assertion (#10530)

This commit is contained in:
Yu Watanabe 2018-10-26 10:16:00 +09:00 committed by GitHub
parent bf1d6be5b8
commit dcdc2f61b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);