summaryrefslogtreecommitdiff
path: root/nscd
diff options
context:
space:
mode:
Diffstat (limited to 'nscd')
-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)