mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
(__nss_configure_lookup): Correct test for early exit of loop.
This commit is contained in:
parent
854a149208
commit
ebc9ab8be4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user