From 91fae3b2928df8e5414ed682746fc8975b758190 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 13 Jun 1999 13:56:47 +0000 Subject: [PATCH] 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(-) diff --git a/hurd/hurdsock.c b/hurd/hurdsock.c index 082cbaf6d6e..bffa54a8797 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 -- 2.47.3