summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-23 09:04:09 +0000
committerJeremy Allison <jra@samba.org>2001-11-23 09:04:09 +0000
commit20a4167599ce211f239d0f324e7e73a1c2d8a5a6 (patch)
tree77e76c90fda7144ee7d013d508a4bb30706d3304
parentf199e9518226ed57a011113bdf06c85265e49674 (diff)
downloadsamba-20a4167599ce211f239d0f324e7e73a1c2d8a5a6.tar.gz
samba-20a4167599ce211f239d0f324e7e73a1c2d8a5a6.tar.xz
samba-20a4167599ce211f239d0f324e7e73a1c2d8a5a6.zip
Set type to NOTUSED if lookup fail.
Jeremy.
-rw-r--r--source/nsswitch/winbindd_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/nsswitch/winbindd_util.c b/source/nsswitch/winbindd_util.c
index 749ae1a2235..8895e8347d7 100644
--- a/source/nsswitch/winbindd_util.c
+++ b/source/nsswitch/winbindd_util.c
@@ -439,6 +439,7 @@ BOOL winbindd_lookup_sid_by_name(char *name, DOM_SID *sid, enum SID_NAME_USE *ty
ZERO_STRUCT(nullsid);
store_sid_by_name_in_cache(name, &nullsid, SID_NAME_USE_NONE);
+ *type = SID_NAME_UNKNOWN;
}
rv = NT_STATUS_IS_OK(result);