26 lines
854 B
Diff
26 lines
854 B
Diff
From 56dc9aec21ab23f76fadf45585adf88e71aa8078 Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Mon, 24 Mar 2014 23:54:14 +0100
|
|
Subject: [PATCH] sd-daemon: fix incorrect variable access
|
|
|
|
---
|
|
src/libsystemd/sd-daemon/sd-daemon.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git src/libsystemd/sd-daemon/sd-daemon.c src/libsystemd/sd-daemon/sd-daemon.c
|
|
index 21fb346..b013438 100644
|
|
--- src/libsystemd/sd-daemon/sd-daemon.c
|
|
+++ 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;
|
|
}
|
|
--
|
|
1.7.9.2
|
|
|