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 | 3b7ed3ea881dc59b77a067d5d3738e9e03b6c538 (patch) | |
tree | 84beab127ccf5f8c7846320d1da0ca53d25021ff /source/rpc_client | |
parent | 85c816c27f2b9d20dfaf411b12ec1803a49574ce (diff) | |
download | samba-3b7ed3ea881dc59b77a067d5d3738e9e03b6c538.tar.gz samba-3b7ed3ea881dc59b77a067d5d3738e9e03b6c538.tar.xz samba-3b7ed3ea881dc59b77a067d5d3738e9e03b6c538.zip |
r24784: Initialize uninitalized data to prevent segfaults.
Thanks to Volker for the hint!
Michael
Diffstat (limited to 'source/rpc_client')
-rw-r--r-- | source/rpc_client/cli_lsarpc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/rpc_client/cli_lsarpc.c b/source/rpc_client/cli_lsarpc.c index cf2e5624a9e..281fe855762 100644 --- a/source/rpc_client/cli_lsarpc.c +++ b/source/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; } |