diff options
author | Günther Deschner <gd@samba.org> | 2009-10-20 15:11:58 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-10-20 15:28:30 +0200 |
commit | b6d97a00b13fc338f6fef3c5587619821d86194c (patch) | |
tree | 0ab25f06322cb65348ae0f448a0c232ec4a5f4f7 | |
parent | d76e77ce9a72543727ff83eacbefed22f0c644b9 (diff) | |
download | samba-b6d97a00b13fc338f6fef3c5587619821d86194c.tar.gz samba-b6d97a00b13fc338f6fef3c5587619821d86194c.tar.xz 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.c | 5 |
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)); |