aboutsummaryrefslogtreecommitdiff
path: root/hurd/hurdsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/hurdsock.c')
-rw-r--r--hurd/hurdsock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hurd/hurdsock.c b/hurd/hurdsock.c
index 082cbaf..bffa54a 100644
--- a/hurd/hurdsock.c
+++ b/hurd/hurdsock.c
@@ -56,8 +56,9 @@ _hurd_socket_server (int domain, int dead)
file_t *new = realloc (servers, (domain + 1) * sizeof (file_t));
if (new != NULL)
{
- while (max_domain <= domain)
+ do
new[++max_domain] = MACH_PORT_NULL;
+ while (max_domain < domain);
servers = new;
}
else