mirror of
https://github.com/systemd/systemd.git
synced 2026-07-13 02:51:14 +00:00
sd-netlink: change error code of the case that too many replies waiting
ERANGE should be used when setting or parsing a number.
This commit is contained in:
@@ -477,7 +477,7 @@ int sd_netlink_call_async(
|
||||
assert_return(!netlink_pid_changed(nl), -ECHILD);
|
||||
|
||||
if (hashmap_size(nl->reply_callbacks) >= REPLY_CALLBACKS_MAX)
|
||||
return -ERANGE;
|
||||
return -EXFULL;
|
||||
|
||||
r = hashmap_ensure_allocated(&nl->reply_callbacks, &trivial_hash_ops);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user