From: Günther Deschner Date: Wed, 22 Oct 2008 23:43:06 +0000 (+0200) Subject: netapi: NetGroupEnum_r needs to handle servers with no groups. X-Git-Tag: samba-4.0.0alpha6~731^2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c017909e2e2f971c68303b98b4a8a5b9019b0f6d;p=thirdparty%2Fsamba.git netapi: NetGroupEnum_r needs to handle servers with no groups. Guenther --- diff --git a/source3/lib/netapi/group.c b/source3/lib/netapi/group.c index 8dba4b88380..95c012a7f6d 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; }