From: Ulrich Drepper Date: Mon, 15 Aug 2011 02:20:09 +0000 (-0400) Subject: Add missing initialization in service cache in nscd X-Git-Tag: glibc-2.15~406 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a60df2c3db52b66fd3190c92ad9bc9b972e0d1fc;p=thirdparty%2Fglibc.git Add missing initialization in service cache in nscd --- diff --git a/ChangeLog b/ChangeLog index 6d543f62631..eaa7b7e0d4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-08-14 Ulrich Drepper + + * nscd/servicescache.c (cache_addserv): Make sure written is always + initialized. + 2011-08-13 Ulrich Drepper * elf/dl-open.c: Rename show_scope to _dl_schow_scope and export. diff --git a/nscd/servicescache.c b/nscd/servicescache.c index ec5a367db83..d3d5dce44ec 100644 --- a/nscd/servicescache.c +++ b/nscd/servicescache.c @@ -102,7 +102,7 @@ cache_addserv (struct database_dyn *db, int fd, request_header *req, { /* We have no data. This means we send the standard reply for this case. */ - total = sizeof (notfound); + written = total = sizeof (notfound); if (fd != -1) written = TEMP_FAILURE_RETRY (send (fd, ¬found, total,