summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-netlink
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-12-01 06:17:58 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-12-01 06:37:05 +0100
commit4db7cb37bd033d91fb12ea96b7cf32968d052f32 (patch)
tree365c23c380990d94e958742047cc9ac74fb35739 /src/libsystemd/sd-netlink
parenthwdb: ieee1394-unit-function: arrangement for Sony DVMC-DA1 (diff)
downloadsystemd-4db7cb37bd033d91fb12ea96b7cf32968d052f32.tar.xz
systemd-4db7cb37bd033d91fb12ea96b7cf32968d052f32.zip
sd-netlink: change error code of the case that too many replies waiting
ERANGE should be used when setting or parsing a number.
Diffstat (limited to 'src/libsystemd/sd-netlink')
-rw-r--r--src/libsystemd/sd-netlink/sd-netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-netlink/sd-netlink.c b/src/libsystemd/sd-netlink/sd-netlink.c
index 898f11d1ab..8b5c47366e 100644
--- a/src/libsystemd/sd-netlink/sd-netlink.c
+++ b/src/libsystemd/sd-netlink/sd-netlink.c
@@ -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)