diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2013-10-04 08:39:29 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-10-04 17:30:14 +0200 |
commit | 9cd1cc74c22dfbc1c695ee7228190b29acce1b28 (patch) | |
tree | dba75265950ff1d6559cd4ad828fb2da96303b6e | |
parent | df3056389818e31b4e8e705120bc9015b3dc2bab (diff) | |
download | sssd-9cd1cc74c22dfbc1c695ee7228190b29acce1b28.tar.gz sssd-9cd1cc74c22dfbc1c695ee7228190b29acce1b28.tar.xz sssd-9cd1cc74c22dfbc1c695ee7228190b29acce1b28.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c index d7d7fe0bb..4e98b5b35 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 { |