OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_66-20-g416e2f1

Gerrit Code Review gerrit@openafs.org
Thu, 29 Oct 2009 13:02:13 -0700 (PDT)


The following commit has been merged in the master branch:
commit 416e2f11c35f5d55f91090b30b4db1a9bf6d6e07
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Wed Oct 28 11:06:47 2009 -0500

    Avoid using released hosts
    
    Since h_Release_r has the possibility of freeing a host, we should not
    be using a host after it has been released. A few places can still use a
    released host, potentially causing heap corruption, double frees, and
    generally weird behavior.
    
    So either move calls of h_Release_r until after we finish using a host,
    or make sure to set the pointer to NULL after it has been released.
    
    Change-Id: I3d5275c3862003e372d3c19a5462e62bf9cb269e
    Reviewed-on: http://gerrit.openafs.org/747
    Tested-by: Andrew Deason <adeason@sinenomine.net>
    Reviewed-by: Dan Hyde <drh@umich.edu>
    Reviewed-by: Derrick Brashear <shadow@dementia.org>

 src/viced/afsfileprocs.c |    8 ++++----
 src/viced/callback.c     |    4 +++-
 src/viced/host.c         |    5 +++--
 3 files changed, 10 insertions(+), 7 deletions(-)

-- 
OpenAFS Master Repository