From 9776d11ad414838ad9c93339e0205d4a0aa8a3db Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 20 Mar 2002 00:56:36 +0000 Subject: Merge of Richard's lookupsid fix. (This used to be commit 3c587384cbe5e10f7fa46f6996581b088dead7f5) --- source3/nsswitch/winbindd_sid.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/nsswitch') 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 */ -- cgit