]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(__nss_configure_lookup): Correct test for early exit of loop.
authorUlrich Drepper <drepper@redhat.com>
Fri, 30 Jan 1998 17:13:41 +0000 (17:13 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 30 Jan 1998 17:13:41 +0000 (17:13 +0000)
nss/nsswitch.c

index 201a2bccfef6303b5874f6e38bcb044bad41100b..ac7cc877e6ed2525945a8fb66f0cfd0c83b7ea95 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -202,7 +202,7 @@ __nss_configure_lookup (const char *dbname, const char *service_line)
       int cmp = strcmp (dbname, databases[cnt].name);
       if (cmp == 0)
        break;
-      if (cmp > 0)
+      if (cmp < 0)
        {
          __set_errno (EINVAL);
          return -1;