Properly check for short writes when sending the response in nscd
authorAndreas Schwab <schwab@suse.de>
Tue, 4 Dec 2012 15:14:13 +0000 (16:14 +0100)
committerAndreas Schwab <schwab@suse.de>
Thu, 10 Jan 2013 08:59:58 +0000 (09:59 +0100)
commitdd31ac7a8e0d4cc24eee6815f9101caa5aa64291
tree084cc65c5b744f23cada0fae9bfd4c0c1cbb3ca3
parent3167bfc62bb38e3057f7694566b5bb157236a5a8
Properly check for short writes when sending the response in nscd

* nscd/grpcache.c (cache_addgr): Properly check for short write.
* nscd/initgrcache.c (addinitgroupsX): Likewise.
* nscd/pwdcache.c (cache_addpw): Likewise.
* nscd/servicescache.c (cache_addserv): Likewise.  Don't write
more than recsize.
nscd/grpcache.c
nscd/initgrcache.c
nscd/pwdcache.c
nscd/servicescache.c