summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-11-18 19:32:23 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-11-19 13:51:18 +0100
commit2de392686c1d5e9bc5972342f753ca4b5fc24bda (patch)
tree4db616822400065ae63b9a3d520f1f5b17c2d304
parenta285506f7d9d84f79f2bb187b72cc990db419559 (diff)
downloadsssd-2de392686c1d5e9bc5972342f753ca4b5fc24bda.tar.gz
sssd-2de392686c1d5e9bc5972342f753ca4b5fc24bda.tar.xz
sssd-2de392686c1d5e9bc5972342f753ca4b5fc24bda.zip
SUDO: Fix wrong variable check
https://fedorahosted.org/sssd/ticket/1650
-rw-r--r--src/responder/sudo/sudosrv_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/sudo/sudosrv_query.c b/src/responder/sudo/sudosrv_query.c
index 998b60235..1574104cb 100644
--- a/src/responder/sudo/sudosrv_query.c
+++ b/src/responder/sudo/sudosrv_query.c
@@ -326,7 +326,7 @@ struct tevent_req *sudosrv_parse_query_send(TALLOC_CTX *mem_ctx,
"sending subdomain request\n", domainname));
subreq = sss_dp_get_domains_send(state, rctx, true, domainname);
- if (req == NULL) {
+ if (subreq == NULL) {
ret = ENOMEM;
} else {
tevent_req_set_callback(subreq, sudosrv_parse_query_done, req);