mirror of git://sourceware.org/git/glibc.git
Add missing initialization in service cache in nscd
This commit is contained in:
parent
73d7af4f4c
commit
a60df2c3db
|
@ -1,3 +1,8 @@
|
|||
2011-08-14 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* nscd/servicescache.c (cache_addserv): Make sure written is always
|
||||
initialized.
|
||||
|
||||
2011-08-13 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* elf/dl-open.c: Rename show_scope to _dl_schow_scope and export.
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue