diff options
author | Ralph Boehme <slow@samba.org> | 2017-11-18 15:14:15 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2017-11-19 15:14:13 +0100 |
commit | 88bdecae0a152d8c07859d437d02116d1f18087f (patch) | |
tree | 83fd455bbb90e027ca451a15b48ef8165f20cc7e /source3 | |
parent | 050ca45dc7fc5bbab6e1c60b919ac0b1e9661e27 (diff) | |
download | samba-88bdecae0a152d8c07859d437d02116d1f18087f.tar.gz |
winbindd: tdb_exists returns 1 if a record is found
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sun Nov 19 15:14:13 CET 2017 on sn-devel-144
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 502232544c4..fbf4451fc33 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -1270,7 +1270,7 @@ NTSTATUS wcache_cached_creds_exist(struct winbindd_domain *domain, const struct fstr_sprintf(key_str, "CRED/%s", sid_to_fstring(tmp, sid)); ret = tdb_exists(cache->tdb, string_tdb_data(key_str)); - if (ret != 0) { + if (ret != 1) { return NT_STATUS_OBJECT_NAME_NOT_FOUND; } |