summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-11 11:30:55 +0100
committerGünther Deschner <gd@samba.org>2008-03-11 11:33:07 +0100
commit2a40d670410823de807224ce175d3ec89a7006b3 (patch)
treeef683022c854bb736a9c39727e6632b8ee15870c
parent45a3c8275f374cba853ba92b3c1c2e404ce276c5 (diff)
downloadsamba-2a40d670410823de807224ce175d3ec89a7006b3.tar.gz
samba-2a40d670410823de807224ce175d3ec89a7006b3.tar.bz2
samba-2a40d670410823de807224ce175d3ec89a7006b3.zip
Trying to fix resume_handling for srvsvc_NetShareEnumAll.
Guenther (This used to be commit 874a0ffd7dbd993230c00c503ec6b27fbffb7745)
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c6
1 files changed, 5 insertions, 1 deletions
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;