diff options
author | Jiri Olsa <jolsa@redhat.com> | 2011-10-06 03:14:21 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-10-06 03:14:21 -0400 |
commit | 64031225b2595620658640c0b7e01311c8b69a06 (patch) | |
tree | 4d8ecbd0585a48ba52bebb37227b28e7f34519e1 /nss | |
parent | 0490345c9fd1f3368f3a515435b0c8a7f6f739fc (diff) | |
download | glibc-64031225b2595620658640c0b7e01311c8b69a06.tar glibc-64031225b2595620658640c0b7e01311c8b69a06.tar.gz glibc-64031225b2595620658640c0b7e01311c8b69a06.tar.bz2 glibc-64031225b2595620658640c0b7e01311c8b69a06.zip |
More fallout from OOM in NSS
Diffstat (limited to 'nss')
-rw-r--r-- | nss/nsswitch.c | 2 |
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) |