mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 02:33:36 +08:00
Avoid warning when reload of group entry fails
This commit is contained in:
parent
054c0457fd
commit
32b63198d6
@ -1,5 +1,7 @@
|
||||
2011-10-06 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* nscd/grpcache.c (cache_addgr): Initialize written in all cases.
|
||||
|
||||
* nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
|
||||
from tree and freeing node.
|
||||
|
||||
|
@ -117,6 +117,8 @@ cache_addgr (struct database_dyn *db, int fd, request_header *req,
|
||||
if (fd != -1)
|
||||
written = TEMP_FAILURE_RETRY (send (fd, ¬found, total,
|
||||
MSG_NOSIGNAL));
|
||||
else
|
||||
written = total;
|
||||
|
||||
/* If we cannot permanently store the result, so be it. */
|
||||
if (db->negtimeout == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user