viced-client-cps-race-fix-20060220
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 20 Feb 2006 15:26:21 +0000 (15:26 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 20 Feb 2006 15:26:21 +0000 (15:26 +0000)
commit4808977d7d0e49e5d260a26113fd97cb48d5f844
tree2dbedb249b15ce25e6a755002c9273b7eee9971c
parentfc5bb308c77a211a796b4bb5de7952dc7a5630ed
viced-client-cps-race-fix-20060220

remove a race condition between h_TossStuff_r and SRXAFS_FlushCPS by
changing h_ID2Client to return the client with a refcount and then
release the refCount with PutClient.

when the CPS list is non-NULL and the viceid is ANONYMOUSID be sure
to set the prlist_val to NULL if the prlist_len is being set to 0
since all of the tests are performed on prlist_val
src/viced/afsfileprocs.c
src/viced/host.c