diff --git a/src/libsystemd/sd-netlink/sd-netlink.c b/src/libsystemd/sd-netlink/sd-netlink.c index 08b57073510..678f36c377b 100644 --- a/src/libsystemd/sd-netlink/sd-netlink.c +++ b/src/libsystemd/sd-netlink/sd-netlink.c @@ -542,7 +542,7 @@ int sd_netlink_call_async(sd_netlink *nl, if (c->timeout != 0) { r = prioq_put(nl->reply_callbacks_prioq, c, &c->prioq_idx); - if (r > 0) { + if (r < 0) { c->timeout = 0; sd_netlink_call_async_cancel(nl, c->serial); return r;