summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-10-20 15:11:58 +0200
committerGünther Deschner <gd@samba.org>2009-10-20 15:28:30 +0200
commitb6d97a00b13fc338f6fef3c5587619821d86194c (patch)
tree0ab25f06322cb65348ae0f448a0c232ec4a5f4f7
parentd76e77ce9a72543727ff83eacbefed22f0c644b9 (diff)
downloadsamba-b6d97a00b13fc338f6fef3c5587619821d86194c.tar.gz
samba-b6d97a00b13fc338f6fef3c5587619821d86194c.tar.bz2
samba-b6d97a00b13fc338f6fef3c5587619821d86194c.zip
s3-lsa: allow to have NULL strings in lsa LookupName queries.
Found by RPC-LSA-LOOKUPNAMES torture test. Guenther
-rw-r--r--source3/rpc_server/srv_lsa_nt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index cc5d23ce71..c5805ef3d4 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -161,7 +161,10 @@ static NTSTATUS lookup_lsa_rids(TALLOC_CTX *mem_ctx,
full_name = name[i].string;
if (full_name == NULL) {
- return NT_STATUS_NO_MEMORY;
+ prid[i].sid_type = type;
+ prid[i].rid = 0;
+ prid[i].sid_index = (uint32_t)-1;
+ continue;
}
DEBUG(5, ("lookup_lsa_rids: looking up name %s\n", full_name));