1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

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
This commit is contained in:
Ralph Boehme 2017-11-18 15:14:15 +01:00 committed by Volker Lendecke
parent 050ca45dc7
commit 88bdecae0a

View File

@ -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;
}