If a mount request failed (e.g. due to failed authentication) the respective

not-yet-mounted ClientVolume was not removed, which could cause query requests
to crash the server.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20184 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-02-20 17:28:40 +00:00
parent 11ef32dfa9
commit e485fc0347

View File

@ -601,6 +601,13 @@ ClientConnection::VisitMountRequest(MountRequest* request)
reply.sharePermissions = sharePermissions.GetPermissions();
reply.volumeID = volume->GetID();
}
// make sure, the volume is removed on error
if (result != B_OK && volume) {
AutoLocker<VolumeMap> volumeMapLocker(fVolumes);
volume->MarkRemoved();
}
securityContextLocker.Unlock();
managerLocker.Unlock();