From 5ac292b5faea231d93c0cd0f58d0f2f1776a7120 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 4 Oct 2013 08:39:29 -0400 Subject: 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 --- src/db/sysdb_sudo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { -- cgit