summaryrefslogtreecommitdiffstats
path: root/src/responder
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-04-03 11:18:31 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-04-03 13:26:41 +0200
commit274fe6a4f8bcb23e31929430110c0b52e9ce233a (patch)
treec3fb9185e2e5da9d79cd16f1890b6134e61ab9ff /src/responder
parentbebeea7ed99394c4061810ed15121bd0f5ac4964 (diff)
downloadsssd-274fe6a4f8bcb23e31929430110c0b52e9ce233a.tar.gz
sssd-274fe6a4f8bcb23e31929430110c0b52e9ce233a.tar.xz
sssd-274fe6a4f8bcb23e31929430110c0b52e9ce233a.zip
Check for correct variable name
https://fedorahosted.org/sssd/ticket/1864
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/sudo/sudosrv_get_sudorules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/sudo/sudosrv_get_sudorules.c b/src/responder/sudo/sudosrv_get_sudorules.c
index f1537820d..6b6e6b23c 100644
--- a/src/responder/sudo/sudosrv_get_sudorules.c
+++ b/src/responder/sudo/sudosrv_get_sudorules.c
@@ -197,7 +197,7 @@ static errno_t sudosrv_get_user(struct sudo_dom_ctx *dctx)
/* user is stored in cache, remember cased and original name */
original_name = ldb_msg_find_attr_as_string(user->msgs[0],
SYSDB_NAME, NULL);
- if (name == NULL) {
+ if (original_name == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, ("A user with no name?\n"));
ret = EFAULT;
goto done;