svn commit: samba r15667 - in branches/SAMBA_4_0/source/libnet: .
mimir at samba.org
mimir at samba.org
Wed May 17 22:21:24 GMT 2006
Author: mimir
Date: 2006-05-17 22:21:24 +0000 (Wed, 17 May 2006)
New Revision: 15667
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15667
Log:
Make sure the rpc pipe pointers are zeroed during
initialisation of libnet_context.
This fixes a valgrind warning.
rafal
Modified:
branches/SAMBA_4_0/source/libnet/libnet.c
Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet.c 2006-05-17 22:07:32 UTC (rev 15666)
+++ branches/SAMBA_4_0/source/libnet/libnet.c 2006-05-17 22:21:24 UTC (rev 15667)
@@ -47,6 +47,14 @@
/* 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;
}
More information about the samba-cvs
mailing list