Windows: AFSLocateNameEntry double free Volume RefCount
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 5 Feb 2013 05:29:12 +0000 (00:29 -0500)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 6 Feb 2013 05:15:12 +0000 (21:15 -0800)
commit028258e6393bd76df0944dc77266bfba176ada73
tree74d512bd3336c6e279007ca8062aaa7efb6fc7d3
parente7df2fcedcd05b5f73f5398433289b52b769c0ea
Windows: AFSLocateNameEntry double free Volume RefCount

If AFSBuildMountPointTarget fails when called from AFSLocateNameEntry
the pCurrentVolume reference count will have been freed even though
the pointer has not been updated.   If the failure is
STATUS_OBJECT_NAME_NOT_FOUND and AFSLocateNameEntry was called
by AFSCreateCommon, the Volume reference count will be freed twice.

Change-Id: I0b5ccb512ea0ec2e24099dff38bbbeddebf0bee3
Reviewed-on: http://gerrit.openafs.org/9069
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSNameSupport.cpp