mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s3-netapi: Fix zeroing policy handles in NetLocalGroupAdd_r().
Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
4c0b4894d5
commit
33d1d52508
@ -159,6 +159,11 @@ WERROR NetLocalGroupAdd_r(struct libnetapi_ctx *ctx,
|
||||
return WERR_INVALID_PARAM;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(connect_handle);
|
||||
ZERO_STRUCT(builtin_handle);
|
||||
ZERO_STRUCT(domain_handle);
|
||||
ZERO_STRUCT(alias_handle);
|
||||
|
||||
switch (r->in.level) {
|
||||
case 0:
|
||||
info0 = (struct LOCALGROUP_INFO_0 *)r->in.buffer;
|
||||
@ -173,11 +178,6 @@ WERROR NetLocalGroupAdd_r(struct libnetapi_ctx *ctx,
|
||||
goto done;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(connect_handle);
|
||||
ZERO_STRUCT(builtin_handle);
|
||||
ZERO_STRUCT(domain_handle);
|
||||
ZERO_STRUCT(alias_handle);
|
||||
|
||||
werr = libnetapi_open_pipe(ctx, r->in.server_name,
|
||||
&ndr_table_samr.syntax_id,
|
||||
&pipe_cli);
|
||||
|
Loading…
x
Reference in New Issue
Block a user