]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
1999-06-13 Roland McGrath <roland@baalperazim.frob.com>
authorRoland McGrath <roland@gnu.org>
Sun, 13 Jun 1999 13:57:29 +0000 (13:57 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 13 Jun 1999 13:57:29 +0000 (13:57 +0000)
* hurd/hurdsock.c (_hurd_socket_server): Fix fencepost error in last
change.

hurd/hurdsock.c

index 082cbaf6d6ec3c0b4570eb176dcf2d5dedd18a4e..bffa54a879733e33d2df3c6820021f7dad97bb7c 100644 (file)
@@ -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