summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-22 12:57:30 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-22 12:57:30 +0000
commit80d5a106bf4ecdb1adb8688e1b8591279ffe9152 (patch)
tree17795c5bcee9faec6a668ebf8e1d0f5962b40f56
parentbc238b9d67614b3f6d2c43b8deb724eef2d1a5f7 (diff)
downloadsamba-80d5a106bf4ecdb1adb8688e1b8591279ffe9152.tar.gz
samba-80d5a106bf4ecdb1adb8688e1b8591279ffe9152.tar.bz2
samba-80d5a106bf4ecdb1adb8688e1b8591279ffe9152.zip
Always initialise this, to assist callers doing loops over this call.
Andrew Bartlett (This used to be commit 6da9fd157b4e61fe72f569e4657166ca9d9ab6dc)
-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);