git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
050ca45
)
winbindd: tdb_exists returns 1 if a record is found
author
Ralph Boehme
<slow@samba.org>
Sat, 18 Nov 2017 14:14:15 +0000
(15:14 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sun, 19 Nov 2017 14:14:13 +0000
(15:14 +0100)
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
source3/winbindd/winbindd_cache.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_cache.c
b/source3/winbindd/winbindd_cache.c
index 502232544c4b25dcb461e5301a7ff3e8b0ded615..fbf4451fc33f9c79c76c54230bd068859321f9d7 100644
(file)
--- 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;
}