From 2a40d670410823de807224ce175d3ec89a7006b3 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 11 Mar 2008 11:30:55 +0100 Subject: Trying to fix resume_handling for srvsvc_NetShareEnumAll. Guenther (This used to be commit 874a0ffd7dbd993230c00c503ec6b27fbffb7745) --- source3/rpc_server/srv_srvsvc_nt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c index eb304aa60c..6421efdf8f 100644 --- a/source3/rpc_server/srv_srvsvc_nt.c +++ b/source3/rpc_server/srv_srvsvc_nt.c @@ -694,7 +694,11 @@ static WERROR init_srv_share_info_ctr(pipes_struct *p, *total_entries = alloc_entries; if (resume_handle_p) { - *resume_handle_p = num_entries; + if (all_shares) { + *resume_handle_p = (num_entries == 0) ? *resume_handle_p : 0; + } else { + *resume_handle_p = num_entries; + } } info_ctr->ctr = ctr; -- cgit