1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-27 01:57:35 +03: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:
Yu Watanabe 2023-12-01 14:17:58 +09:00
parent 26c9773ab9
commit 4db7cb37bd

View File

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