From b6d97a00b13fc338f6fef3c5587619821d86194c Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 20 Oct 2009 15:11:58 +0200 Subject: [PATCH] s3-lsa: allow to have NULL strings in lsa LookupName queries. Found by RPC-LSA-LOOKUPNAMES torture test. Guenther --- source3/rpc_server/srv_lsa_nt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index cc5d23ce71f..c5805ef3d4b 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)); -- 2.34.1