summaryrefslogtreecommitdiff
path: root/nss/nsswitch.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2011-10-06 03:14:21 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-06 03:14:21 -0400
commit64031225b2595620658640c0b7e01311c8b69a06 (patch)
tree4d8ecbd0585a48ba52bebb37227b28e7f34519e1 /nss/nsswitch.c
parent0490345c9fd1f3368f3a515435b0c8a7f6f739fc (diff)
downloadglibc-64031225b2595620658640c0b7e01311c8b69a06.tar.gz
More fallout from OOM in NSS
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 535d93bb95..ac73984576 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)