From 2d616b0b861f7be798a3931c4e643e730e073eff Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 13 Jun 1999 13:57:29 +0000 Subject: 1999-06-13 Roland McGrath * hurd/hurdsock.c (_hurd_socket_server): Fix fencepost error in last change. --- hurd/hurdsock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hurd') diff --git a/hurd/hurdsock.c b/hurd/hurdsock.c index 082cbaf6d6..bffa54a879 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 -- cgit 1.4.1