Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid warning when reload of group entry fails
  • Loading branch information
Ulrich Drepper committed Oct 6, 2011
1 parent 054c045 commit 32b6319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
@@ -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.

Expand Down
2 changes: 2 additions & 0 deletions nscd/grpcache.c
Expand Up @@ -117,6 +117,8 @@ cache_addgr (struct database_dyn *db, int fd, request_header *req,
if (fd != -1)
written = TEMP_FAILURE_RETRY (send (fd, &notfound, total,
MSG_NOSIGNAL));
else
written = total;

/* If we cannot permanently store the result, so be it. */
if (db->negtimeout == 0)
Expand Down

0 comments on commit 32b6319

Please sign in to comment.