Skip to content

Commit 4db7cb3

Browse files
committed
sd-netlink: change error code of the case that too many replies waiting
ERANGE should be used when setting or parsing a number.
1 parent 26c9773 commit 4db7cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsystemd/sd-netlink/sd-netlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ int sd_netlink_call_async(
477477
assert_return(!netlink_pid_changed(nl), -ECHILD);
478478

479479
if (hashmap_size(nl->reply_callbacks) >= REPLY_CALLBACKS_MAX)
480-
return -ERANGE;
480+
return -EXFULL;
481481

482482
r = hashmap_ensure_allocated(&nl->reply_callbacks, &trivial_hash_ops);
483483
if (r < 0)

0 commit comments

Comments
 (0)