diff options
author | Volker Lendecke <vl@samba.org> | 2009-03-24 11:07:16 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-03-24 11:59:42 +0100 |
commit | f91565544f96be60cb6464d739008f8241e55d5c (patch) | |
tree | e6640570221e808790c7a15df34a4569544bf571 /source3/rpc_server | |
parent | de2a7c8e4caa4898a3ff5cfd85d21cddec8188f2 (diff) | |
download | samba-f91565544f96be60cb6464d739008f8241e55d5c.tar.gz samba-f91565544f96be60cb6464d739008f8241e55d5c.tar.xz samba-f91565544f96be60cb6464d739008f8241e55d5c.zip |
Fix bug 6097
A client sent a SID with authority 0 and 0 sub-authorities. W2k3 replies with
NT_STATUS_INVALID_SID, even if other SIDs in the list are valid.
Thanks to Pavel <wylda@volny.cz> for the bug report!
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_lsa_nt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index ed54c3a86e9..5fdcaf2d4ac 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -827,6 +827,10 @@ NTSTATUS _lsa_LookupSids(pipes_struct *p, &names, &mapped_count); + if (NT_STATUS_IS_ERR(status)) { + return status; + } + /* Convert from lsa_TranslatedName2 to lsa_TranslatedName */ names_out = TALLOC_ARRAY(p->mem_ctx, struct lsa_TranslatedName, num_sids); |