summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-02-13 08:46:02 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-02-13 11:54:57 -0500
commitb861f94b6c6ae517fbe4724d5d4132c18ce4a935 (patch)
tree9c4f06571732c5e427356cfdc9cf7f62e9820172 /src
parent83b62bf46ca5043f09a55a8b6c3c56d9da7932cd (diff)
downloadsssd-b861f94b6c6ae517fbe4724d5d4132c18ce4a935.tar.gz
sssd-b861f94b6c6ae517fbe4724d5d4132c18ce4a935.tar.xz
sssd-b861f94b6c6ae517fbe4724d5d4132c18ce4a935.zip
Avoid uninitialized value comparison
Coverity #12526
Diffstat (limited to 'src')
-rw-r--r--src/responder/nss/nsssrv_cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index 7ec0b7c03..2a2a16b8b 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -547,6 +547,9 @@ errno_t check_cache(struct nss_dom_ctx *dctx,
DEBUG(SSSDBG_CRIT_FAILURE, ("Error checking cache: %d\n", ret));
goto error;
}
+ } else {
+ /* No replies */
+ ret = ENOENT;
}
/* EAGAIN (off band) or ENOENT (cache miss) -> check cache */