diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-13 08:46:02 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-13 11:54:53 -0500 |
commit | d504e6bfe8a88ea41a72b0f379e21368f7cf4cdd (patch) | |
tree | 3b3c7c3ea855fba4d7cbd9f0b94a2beab1d08703 /src/responder/nss | |
parent | 5c8f19954c49a738b825d8752d25baf752723bea (diff) | |
download | sssd-d504e6bfe8a88ea41a72b0f379e21368f7cf4cdd.tar.gz sssd-d504e6bfe8a88ea41a72b0f379e21368f7cf4cdd.tar.bz2 sssd-d504e6bfe8a88ea41a72b0f379e21368f7cf4cdd.zip |
Avoid uninitialized value comparison
Coverity #12526
Diffstat (limited to 'src/responder/nss')
-rw-r--r-- | src/responder/nss/nsssrv_cmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c index 7ec0b7c0..2a2a16b8 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 */ |