summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-07-16 06:57:50 +0200
committerStefan Metzmacher <metze@samba.org>2015-07-17 16:01:14 +0200
commite5d309d4328a1391ebd39dd487c100abdb9cb091 (patch)
treef9b6f72334c05928378434663ba33b030699e36d
parent109ff388fd5e1306189d680a8f964a69374f1b01 (diff)
downloadsamba-e5d309d4328a1391ebd39dd487c100abdb9cb091.tar.gz
s3:winbindd: initialize an [in,out] variable in rpc_try_lookup_sids3()
The input value of count is ignored by the server, but we should not send an uninitialized value. Found by valgrind. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/winbindd/winbindd_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c
index 03bc9b577fc..2958fdef561 100644
--- a/source3/winbindd/winbindd_rpc.c
+++ b/source3/winbindd/winbindd_rpc.c
@@ -1081,7 +1081,7 @@ static NTSTATUS rpc_try_lookup_sids3(TALLOC_CTX *mem_ctx,
{
struct lsa_TransNameArray2 lsa_names2;
struct lsa_TransNameArray *names = *pnames;
- uint32_t i, count;
+ uint32_t i, count = 0;
NTSTATUS status, result;
ZERO_STRUCT(lsa_names2);