|
|
905b4d |
From 660d1493ad63cc39f99e3d2fb981598fab404b82 Mon Sep 17 00:00:00 2001
|
|
|
905b4d |
From: Sumit Bose <sbose@redhat.com>
|
|
|
905b4d |
Date: Thu, 22 Jan 2015 18:30:04 +0100
|
|
|
905b4d |
Subject: [PATCH 176/176] nss: fix SID lookups
|
|
|
905b4d |
MIME-Version: 1.0
|
|
|
905b4d |
Content-Type: text/plain; charset=UTF-8
|
|
|
905b4d |
Content-Transfer-Encoding: 8bit
|
|
|
905b4d |
|
|
|
905b4d |
https://fedorahosted.org/sssd/ticket/2566
|
|
|
905b4d |
|
|
|
905b4d |
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
|
|
|
905b4d |
---
|
|
|
905b4d |
src/responder/nss/nsssrv_cmd.c | 10 +++++++++-
|
|
|
905b4d |
1 file changed, 9 insertions(+), 1 deletion(-)
|
|
|
905b4d |
|
|
|
905b4d |
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
|
|
|
905b4d |
index 324688eeeb90109a31391d01a9e1cd96707da7ed..da24ce1730999518b2e1bc52604940ee979072e3 100644
|
|
|
905b4d |
--- a/src/responder/nss/nsssrv_cmd.c
|
|
|
905b4d |
+++ b/src/responder/nss/nsssrv_cmd.c
|
|
|
905b4d |
@@ -4503,8 +4503,16 @@ static errno_t nss_cmd_getbysid_search(struct nss_dom_ctx *dctx)
|
|
|
905b4d |
DEBUG(SSSDBG_MINOR_FAILURE,
|
|
|
905b4d |
"Cannot set negative cache for %s\n", cmdctx->secid);
|
|
|
905b4d |
}
|
|
|
905b4d |
+
|
|
|
905b4d |
+ return ENOENT;
|
|
|
905b4d |
}
|
|
|
905b4d |
- return ENOENT;
|
|
|
905b4d |
+
|
|
|
905b4d |
+ dctx->res = talloc_zero(cmdctx, struct ldb_result);
|
|
|
905b4d |
+ if (dctx->res == NULL) {
|
|
|
905b4d |
+ DEBUG(SSSDBG_OP_FAILURE, "talloc_zero failed.\n");
|
|
|
905b4d |
+ return ENOMEM;
|
|
|
905b4d |
+ }
|
|
|
905b4d |
+ /* Fall through and call the backend */
|
|
|
905b4d |
} else if (ret != EOK) {
|
|
|
905b4d |
DEBUG(SSSDBG_CRIT_FAILURE, "Failed to make request to our cache!\n");
|
|
|
905b4d |
return EIO;
|
|
|
905b4d |
--
|
|
|
905b4d |
2.1.0
|
|
|
905b4d |
|