From: Lennart Poettering Date: Mon, 24 Mar 2014 22:54:14 +0000 (+0100) Subject: sd-daemon: fix incorrect variable access X-Git-Tag: v212~21 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=56dc9aec21ab23f76fadf45585adf88e71aa8078 sd-daemon: fix incorrect variable access --- diff --git a/src/libsystemd/sd-daemon/sd-daemon.c b/src/libsystemd/sd-daemon/sd-daemon.c index 21fb346bf..b013438de 100644 --- a/src/libsystemd/sd-daemon/sd-daemon.c +++ b/src/libsystemd/sd-daemon/sd-daemon.c @@ -517,7 +517,7 @@ _public_ int sd_watchdog_enabled(int unset_environment, uint64_t *usec) { r = -errno; goto finish; } - if (!p || p == e || *p || l <= 0) { + if (!p || p == e || *p || ll <= 0) { r = -EINVAL; goto finish; }