about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-06-13 13:57:29 +0000
committerRoland McGrath <roland@gnu.org>1999-06-13 13:57:29 +0000
commit2d616b0b861f7be798a3931c4e643e730e073eff (patch)
tree9aaf6dce4c864e2d1e04b2255c24a279f1d55d48
parentec239360d13518a13f572b635d036c7d10028010 (diff)
downloadglibc-2d616b0b861f7be798a3931c4e643e730e073eff.tar.gz
glibc-2d616b0b861f7be798a3931c4e643e730e073eff.tar.xz
glibc-2d616b0b861f7be798a3931c4e643e730e073eff.zip
1999-06-13 Roland McGrath <roland@baalperazim.frob.com>
* hurd/hurdsock.c (_hurd_socket_server): Fix fencepost error in last 
change.
-rw-r--r--hurd/hurdsock.c3
1 files changed, 2 insertions, 1 deletions
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