aboutsummaryrefslogtreecommitdiff
path: root/nss/nsswitch.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/nsswitch.c')
-rw-r--r--nss/nsswitch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/nsswitch.c b/nss/nsswitch.c
index 77fc4f0916..9c7a2d7909 100644
--- a/nss/nsswitch.c
+++ b/nss/nsswitch.c
@@ -201,7 +201,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;