From 3b07abf2d7e1fe8831c5ce5d84ba70add24a5a3b Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Wed, 17 May 2006 22:21:24 +0000 Subject: 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 b751eb1102f3169b8eb66bae465cf79a44597bbe) --- source4/libnet/libnet.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4') diff --git a/source4/libnet/libnet.c b/source4/libnet/libnet.c index 8398e9ca17..0dca57926d 100644 --- a/source4/libnet/libnet.c +++ b/source4/libnet/libnet.c @@ -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; } -- cgit