From 1cdeb2372ddecac0dfe0c132a033e9590ffa07d2 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Wed, 30 Apr 2014 11:57:09 +0530 Subject: Consolidate code to initialize nscd dataset header This patch consolidates the code to initialize the header of a dataset into a single set of functions (one for positive and another for negative datasets) primarily to reduce repetition of code. The secondary reason is to simplify Patch 2/2 which fixes the problem of an uninitialized byte in the header by initializing an unused field in the structure and hence preventing a possible data leak into the cache file. --- ChangeLog | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 7aa7bd2ca7..942fb801e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2014-04-30 Siddhesh Poyarekar + + * nscd/nscd-client.h (datahead_init_common, datahead_init_pos, + datahead_init_neg): New functions. + * nscd/aicache.c (addhstaiX): Use them. + * nscd/grpcache.c (cache_addgr): Likewise. + * nscd/hstcache.c (cache_addhst): Likewise. + * nscd/initgrcache.c (addinitgroupsX): Likewise. + * nscd/netgroupcache.c (do_notfound): Likewise. + (addgetnetgrentX): Likewise. + (addinnetgrX): Likewise. + * nscd/pwdcache.c (cache_addpw): Likewise. + * nscd/servicescache.c (cache_addserv): Likewise. + 2014-04-30 Siddhesh Poyarekar Atsushi Onoe -- cgit v1.2.3