]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
netapi: NetGroupEnum_r needs to handle servers with no groups.
authorGünther Deschner <gd@samba.org>
Wed, 22 Oct 2008 23:43:06 +0000 (01:43 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 22 Oct 2008 23:43:06 +0000 (01:43 +0200)
Guenther

source3/lib/netapi/group.c

index 8dba4b88380a59fdda6dc062d6cb3cb2c24b6bd0..95c012a7f6d09306f6a0e64e0776460300b618f6 100644 (file)
@@ -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;
        }