summaryrefslogtreecommitdiff
path: root/src/responder/nss/nsssrv_cmd.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-12-20 04:10:25 +0000
committerJakub Hrozek <jhrozek@redhat.com>2012-12-20 19:55:02 +0100
commit6acf7c92ab38ad388295b2d57cc97c4598aa95cc (patch)
tree2dae4cb5af4b0e62ff9c95a5b8ee1f801da1233c /src/responder/nss/nsssrv_cmd.c
parentda4c23b6670adb45f71cf51aaeca8df30c2144be (diff)
downloadsssd-6acf7c92ab38ad388295b2d57cc97c4598aa95cc.tar.gz
sssd-6acf7c92ab38ad388295b2d57cc97c4598aa95cc.tar.bz2
sssd-6acf7c92ab38ad388295b2d57cc97c4598aa95cc.zip
Carefully check records when forcibly invalidating
We should never try to invalidate an already invalid record as internal pointers will not be consistent. Carefully test that the record really is valid when we are fishing for free space, and properly invalidate records or return a fatal error if something goes wrong. In order to make the code more robust always invalidate the whole data space on initialization by setting all bits to 1, and make sure to invalidate the whole last allocated slot by converting rec->len to the number of slots instead of just the space used.
Diffstat (limited to 'src/responder/nss/nsssrv_cmd.c')
0 files changed, 0 insertions, 0 deletions