1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-09 20:23:51 +03:00

r15667: Make sure the rpc pipe pointers are zeroed during

initialisation of libnet_context.
This fixes a valgrind warning.

rafal
This commit is contained in:
Rafal Szczesniak
2006-05-17 22:21:24 +00:00
committed by Gerald (Jerry) Carter
parent dc93aef09a
commit b751eb1102

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;
}