summaryrefslogtreecommitdiff
path: root/nscd/grpcache.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-10-06 03:44:19 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-06 03:44:19 -0400
commit32b63198d62a59adcc11bb9b165fd18e756e4e39 (patch)
tree4461e4605957be1e7b7c3237a292aa420b3905eb /nscd/grpcache.c
parent054c0457fd670ab29024e5e8655f507aecd68e18 (diff)
downloadglibc-32b63198d62a59adcc11bb9b165fd18e756e4e39.tar.gz
Avoid warning when reload of group entry fails
Diffstat (limited to 'nscd/grpcache.c')
-rw-r--r--nscd/grpcache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nscd/grpcache.c b/nscd/grpcache.c
index 8a2f80ccdb..e9607c6f11 100644
--- a/nscd/grpcache.c
+++ b/nscd/grpcache.c
@@ -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)