1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

r15667: Make sure the rpc pipe pointers are zeroed during

initialisation of libnet_context.
This fixes a valgrind warning.

rafal
(This used to be commit b751eb1102)
This commit is contained in:
Rafal Szczesniak
2006-05-17 22:21:24 +00:00
committed by Gerald (Jerry) Carter
parent e1e4474fb0
commit 3b07abf2d7

View File

@ -47,6 +47,14 @@ struct libnet_context *libnet_context_init(struct event_context *ev)
/* connected domain params */
ZERO_STRUCT(ctx->domain);
/* currently opened user */
ZERO_STRUCT(ctx->user_handle);
/* init pipe pointers */
ctx->samr_pipe = NULL;
ctx->lsa_pipe = NULL;
ctx->pipe = NULL;
return ctx;
}