summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-23 01:43:06 +0200
committerGünther Deschner <gd@samba.org>2008-10-23 01:43:06 +0200
commitc017909e2e2f971c68303b98b4a8a5b9019b0f6d (patch)
tree446bb2a12f6412ed5a75b474eaa25aba8298b70a /source3/lib
parent74a9a391aa98dda542ef413d46d2080b450be127 (diff)
downloadsamba-c017909e2e2f971c68303b98b4a8a5b9019b0f6d.tar.gz
samba-c017909e2e2f971c68303b98b4a8a5b9019b0f6d.tar.bz2
samba-c017909e2e2f971c68303b98b4a8a5b9019b0f6d.zip
netapi: NetGroupEnum_r needs to handle servers with no groups.
Guenther
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/group.c b/source3/lib/netapi/group.c
index 8dba4b8838..95c012a7f6 100644
--- a/source3/lib/netapi/group.c
+++ b/source3/lib/netapi/group.c
@@ -1243,7 +1243,7 @@ WERROR NetGroupEnum_r(struct libnetapi_ctx *ctx,
goto done;
}
- if (r->out.resume_handle) {
+ if (r->out.resume_handle && info.info3.count > 0) {
*r->out.resume_handle =
info.info3.entries[info.info3.count-1].idx;
}