From: Bernhard Übelacker bernhardu@mailbox.org
--- server/handle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/handle.c b/server/handle.c index e65831b3b22..47a3664e4b1 100644 --- a/server/handle.c +++ b/server/handle.c @@ -838,7 +838,7 @@ static int enum_handles( struct process *process, void *user ) struct handle_info *handle; unsigned int i;
- if (!table) + if (!table || table->last == -1) return 0;
for (i = 0, entry = table->entries; i <= table->last; i++, entry++)