Skip to content

Commit

Permalink
More fallout from OOM in NSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Olsa authored and Ulrich Drepper committed Oct 6, 2011
1 parent 0490345 commit 6403122
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2011-09-25 Jiri Olsa <jolsa@redhat.com>

* nss/nsswitch.c (__nss_database_lookup): Handle
nss_parse_service_list out of memory case.

2011-09-15 Jiri Olsa <jolsa@redhat.com>

* nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
Expand Down
2 changes: 1 addition & 1 deletion nss/nsswitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6403122

Please sign in to comment.