1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

netapi: NetGroupEnum_r needs to handle servers with no groups.

Guenther
This commit is contained in:
Günther Deschner 2008-10-23 01:43:06 +02:00
parent 74a9a391aa
commit c017909e2e

View 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;
}