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:
parent
11ef32dfa9
commit
e485fc0347
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user