The Samba-Bugzilla – Attachment 4009 Details for
Bug 6097
INTERNAL ERROR: Signal 11 (similar to bug #5158?)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
6097.patch (text/plain), 1.43 KB, created by
Volker Lendecke
on 2009-03-24 05:15:09 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2009-03-24 05:15:09 UTC
Size:
1.43 KB
patch
obsolete
>From 1946eb775423d8fa4bc40d12b65d3176c007c4bf Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Tue, 24 Mar 2009 11:07:16 +0100 >Subject: [PATCH] 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! >--- > source/passdb/lookup_sid.c | 2 +- > source/rpc_server/srv_lsa_nt.c | 4 ++++ > 2 files changed, 5 insertions(+), 1 deletions(-) > >diff --git a/source/passdb/lookup_sid.c b/source/passdb/lookup_sid.c >index a7175b9..d767fa4 100644 >--- a/source/passdb/lookup_sid.c >+++ b/source/passdb/lookup_sid.c >@@ -804,7 +804,7 @@ NTSTATUS lookup_sids(TALLOC_CTX *mem_ctx, int num_sids, > } else { > /* This is a normal SID with rid component */ > if (!sid_split_rid(&sid, &rid)) { >- result = NT_STATUS_INVALID_PARAMETER; >+ result = NT_STATUS_INVALID_SID; > goto fail; > } > } >diff --git a/source/rpc_server/srv_lsa_nt.c b/source/rpc_server/srv_lsa_nt.c >index 9ce992c..9d411ec 100644 >--- a/source/rpc_server/srv_lsa_nt.c >+++ b/source/rpc_server/srv_lsa_nt.c >@@ -830,6 +830,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); >-- >1.6.1.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6097
:
3928
|
4008
| 4009