diff options
author | Michael Adam <obnox@samba.org> | 2007-08-29 14:34:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:21 -0500 |
commit | d86c441b468be0fbcdc89cb8b52966a89a1b6b4a (patch) | |
tree | 05482da8853aabea040afb968082418cd7e8f090 /source3 | |
parent | 6824731cb09dcf736f5282d55723fffb253cec95 (diff) | |
download | samba-d86c441b468be0fbcdc89cb8b52966a89a1b6b4a.tar.gz samba-d86c441b468be0fbcdc89cb8b52966a89a1b6b4a.tar.bz2 samba-d86c441b468be0fbcdc89cb8b52966a89a1b6b4a.zip |
r24784: Initialize uninitalized data to prevent segfaults.
Thanks to Volker for the hint!
Michael
(This used to be commit 3b7ed3ea881dc59b77a067d5d3738e9e03b6c538)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/cli_lsarpc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c index cf2e5624a9..281fe85576 100644 --- a/source3/rpc_client/cli_lsarpc.c +++ b/source3/rpc_client/cli_lsarpc.c @@ -182,6 +182,11 @@ static NTSTATUS rpccli_lsa_lookup_sids_noalloc(struct rpc_pipe_client *cli, /* Return output parameters */ if (r.mapped_count == 0) { + for (i = 0; i < num_sids; i++) { + (names)[i] = NULL; + (domains)[i] = NULL; + (types)[i] = SID_NAME_UNKNOWN; + } result = NT_STATUS_NONE_MAPPED; goto done; } |