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:
parent
bf1d6be5b8
commit
dcdc2f61b1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user