diff options
author | Rafal Szczesniak <mimir@samba.org> | 2006-05-17 22:21:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:05 -0500 |
commit | 3b07abf2d7e1fe8831c5ce5d84ba70add24a5a3b (patch) | |
tree | 02df03558530deed6905a99e7ae4920d53736f6c /source4/libnet | |
parent | e1e4474fb067f6d7e7d7058dd797ce30f902a768 (diff) | |
download | samba-3b07abf2d7e1fe8831c5ce5d84ba70add24a5a3b.tar.gz samba-3b07abf2d7e1fe8831c5ce5d84ba70add24a5a3b.tar.bz2 samba-3b07abf2d7e1fe8831c5ce5d84ba70add24a5a3b.zip |
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)
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |