diff options
author | Günther Deschner <gd@samba.org> | 2008-10-23 01:43:06 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-23 01:43:06 +0200 |
commit | c017909e2e2f971c68303b98b4a8a5b9019b0f6d (patch) | |
tree | 446bb2a12f6412ed5a75b474eaa25aba8298b70a /source3/lib/netapi | |
parent | 74a9a391aa98dda542ef413d46d2080b450be127 (diff) | |
download | samba-c017909e2e2f971c68303b98b4a8a5b9019b0f6d.tar.gz samba-c017909e2e2f971c68303b98b4a8a5b9019b0f6d.tar.xz samba-c017909e2e2f971c68303b98b4a8a5b9019b0f6d.zip |
netapi: NetGroupEnum_r needs to handle servers with no groups.
Guenther
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/group.c | 2 |
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; } |