diff options
-rw-r--r-- | test/mocklibc/src/netgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mocklibc/src/netgroup.c b/test/mocklibc/src/netgroup.c index bc99555..06a8a89 100644 --- a/test/mocklibc/src/netgroup.c +++ b/test/mocklibc/src/netgroup.c @@ -326,7 +326,7 @@ struct entry *netgroup_iter_next(struct netgroup_iter *iter) { // Grow the stack iter->depth++; - if (iter->depth > NETGROUP_MAX_DEPTH) { + if (iter->depth >= NETGROUP_MAX_DEPTH) { iter->depth = -1; return NULL; // Too much recursion } |