summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2013-10-04 08:39:29 -0400
committerJakub Hrozek <jhrozek@redhat.com>2013-10-04 17:24:42 +0200
commit5ac292b5faea231d93c0cd0f58d0f2f1776a7120 (patch)
tree79ee4af301ef4f5ce15cdc80aba993dfa9307b7e
parent55fdd0d28e7c88f333ad78183b0ba37a1da34160 (diff)
downloadsssd-5ac292b5faea231d93c0cd0f58d0f2f1776a7120.tar.gz
sssd-5ac292b5faea231d93c0cd0f58d0f2f1776a7120.tar.bz2
sssd-5ac292b5faea231d93c0cd0f58d0f2f1776a7120.zip
SYSDB: Fix incorrect DEBUG message
A bad comparison resulted in the sysdb_sudo_check_time() function always printing a debug message saying that the time matched. Resolves: Coverity Issue #12031
-rw-r--r--src/db/sysdb_sudo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c
index d7d7fe0b..4e98b5b3 100644
--- a/src/db/sysdb_sudo.c
+++ b/src/db/sysdb_sudo.c
@@ -154,7 +154,7 @@ static errno_t sysdb_sudo_check_time(struct sysdb_attrs *rule,
*result = true;
}
- if (result) {
+ if (*result) {
DEBUG(SSSDBG_TRACE_ALL, ("Rule [%s] matches time restrictions\n",
name));
} else {