diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-06-19 19:41:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:18:49 -0500 |
commit | dfa4760eeaecb3666c149d9bcdf6f36c18c6f463 (patch) | |
tree | d3086de32be11cfc85905c28ec86fd6aa1131d06 /source3/nsswitch/winbindd_cache.c | |
parent | e7fc37cf0f4bd2c0f25865fb07d1bff27b239130 (diff) | |
download | samba-dfa4760eeaecb3666c149d9bcdf6f36c18c6f463.tar.gz samba-dfa4760eeaecb3666c149d9bcdf6f36c18c6f463.tar.xz samba-dfa4760eeaecb3666c149d9bcdf6f36c18c6f463.zip |
r16361: Fix Klocwork ID 1731 1770 1771 1775 1796
Volker
(This used to be commit 8a5cebc19e4709399976efe9e3ba3bf29249620a)
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index ba69d41392e..e078c295e17 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -276,7 +276,7 @@ static BOOL centry_sid(struct cache_entry *centry, TALLOC_CTX *mem_ctx, DOM_SID { char *sid_string; sid_string = centry_string(centry, mem_ctx); - if (!string_to_sid(sid, sid_string)) { + if ((sid_string == NULL) || (!string_to_sid(sid, sid_string))) { return False; } return True; @@ -2136,6 +2136,7 @@ void wcache_flush_cache(void) if (!wcache->tdb) { DEBUG(0,("Failed to open winbindd_cache.tdb!\n")); + return; } tdb_traverse(wcache->tdb, traverse_fn_cleanup, NULL); |