From 64031225b2595620658640c0b7e01311c8b69a06 Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Thu, 6 Oct 2011 03:14:21 -0400 Subject: More fallout from OOM in NSS --- nss/nsswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nss') diff --git a/nss/nsswitch.c b/nss/nsswitch.c index 535d93b..ac739845 100644 --- a/nss/nsswitch.c +++ b/nss/nsswitch.c @@ -147,7 +147,7 @@ __nss_database_lookup (const char *database, const char *alternate_name, __libc_lock_unlock (lock); - return 0; + return *ni != NULL ? 0 : -1; } libc_hidden_def (__nss_database_lookup) -- cgit v1.1