diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-06-17 07:43:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:17:34 -0500 |
commit | ee4ee4c5414fdf0e8c27249016f033b87ec65ca4 (patch) | |
tree | d2752cac2d451ac83c7cdb0f82a2ffb0032bd239 /source3/rpc_client/cli_lsarpc.c | |
parent | e279878b283b4450ed6821e7e2092ef642173430 (diff) | |
download | samba-ee4ee4c5414fdf0e8c27249016f033b87ec65ca4.tar.gz samba-ee4ee4c5414fdf0e8c27249016f033b87ec65ca4.tar.bz2 samba-ee4ee4c5414fdf0e8c27249016f033b87ec65ca4.zip |
r16335: Fix Klocwork IDs 107 108 109 111 112 113 114 116 117 118 121
(This used to be commit 555984ea772730a5752905f1130e0bf6ec48207f)
Diffstat (limited to 'source3/rpc_client/cli_lsarpc.c')
-rw-r--r-- | source3/rpc_client/cli_lsarpc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c index ac797243ed..deb97724a0 100644 --- a/source3/rpc_client/cli_lsarpc.c +++ b/source3/rpc_client/cli_lsarpc.c @@ -1177,6 +1177,12 @@ NTSTATUS rpccli_lsa_enum_account_rights(struct rpc_pipe_client *cli, TALLOC_CTX privileges = TALLOC_ARRAY( mem_ctx, fstring, *count ); names = TALLOC_ARRAY( mem_ctx, char *, *count ); + if ((privileges == NULL) || (names == NULL)) { + TALLOC_FREE(privileges); + TALLOC_FREE(names); + return NT_STATUS_NO_MEMORY; + } + for ( i=0; i<*count; i++ ) { UNISTR4 *uni_string = &r.rights->strings[i]; |