summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-03-20 00:56:36 +0000
committerTim Potter <tpot@samba.org>2002-03-20 00:56:36 +0000
commit9776d11ad414838ad9c93339e0205d4a0aa8a3db (patch)
treee515fd10655c854eacfa03fd98232e6c4e894138 /source3/nsswitch
parent3fe771654b28898cb5fabb9ab305c3a10145c49d (diff)
downloadsamba-9776d11ad414838ad9c93339e0205d4a0aa8a3db.tar.gz
samba-9776d11ad414838ad9c93339e0205d4a0aa8a3db.tar.bz2
samba-9776d11ad414838ad9c93339e0205d4a0aa8a3db.zip
Merge of Richard's lookupsid fix.
(This used to be commit 3c587384cbe5e10f7fa46f6996581b088dead7f5)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_sid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_sid.c b/source3/nsswitch/winbindd_sid.c
index 227ce439d5..3131e7b196 100644
--- a/source3/nsswitch/winbindd_sid.c
+++ b/source3/nsswitch/winbindd_sid.c
@@ -39,7 +39,10 @@ enum winbindd_result winbindd_lookupsid(struct winbindd_cli_state *state)
/* Lookup sid from PDC using lsa_lookup_sids() */
- string_to_sid(&sid, state->request.data.sid);
+ if (!string_to_sid(&sid, state->request.data.sid)) {
+ DEBUG(5, ("%s not a SID\n", state->request.data.sid));
+ return WINBINDD_ERROR;
+ }
/* Don't look up BUILTIN sids */