projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0490345
)
More fallout from OOM in NSS
author
Jiri Olsa
<jolsa@redhat.com>
Thu, 6 Oct 2011 07:14:21 +0000
(
03:14
-0400)
committer
Ulrich Drepper
<drepper@gmail.com>
Thu, 6 Oct 2011 07:14:21 +0000
(
03:14
-0400)
ChangeLog
patch
|
blob
|
history
nss/nsswitch.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index
33eeafb
..
52d4f1c
100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-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
diff --git
a/nss/nsswitch.c
b/nss/nsswitch.c
index
535d93b
..
ac73984
100644
(file)
--- 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)