summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-24 13:55:51 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-24 13:55:51 +0000
commit95d47c474b49a3d62e744ed95b4716ea0c88a4cd (patch)
treec470a3adcc734ef61959c2a5e3ff9e1ff67a290c /source3
parent59e0836b7f4221fd002abab083f71f04dffe7648 (diff)
downloadsamba-95d47c474b49a3d62e744ed95b4716ea0c88a4cd.tar.gz
samba-95d47c474b49a3d62e744ed95b4716ea0c88a4cd.tar.bz2
samba-95d47c474b49a3d62e744ed95b4716ea0c88a4cd.zip
Merge from HEAD - always initailise this to zero - helps callers in loops.
(This used to be commit f200a5b85832ac5ec7724d58da7270cd14c565e3)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_samr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c
index 9d0b48796c..fa4c662e04 100644
--- a/source3/rpc_client/cli_samr.c
+++ b/source3/rpc_client/cli_samr.c
@@ -571,6 +571,9 @@ NTSTATUS cli_samr_enum_dom_users(struct cli_state *cli, TALLOC_CTX *mem_ctx,
ZERO_STRUCT(q);
ZERO_STRUCT(r);
+ /* always init this */
+ *num_dom_users = 0;
+
/* Initialise parse structures */
prs_init(&qbuf, MAX_PDU_FRAG_LEN, mem_ctx, MARSHALL);