A NULL pointer was dereferenced when mounting failed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29365 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -254,7 +254,8 @@ UserlandRequestHandler::_HandleRequest(MountVolumeRequest* request)
|
|||||||
reply->error = result;
|
reply->error = result;
|
||||||
reply->volume = volume;
|
reply->volume = volume;
|
||||||
reply->rootID = rootID;
|
reply->rootID = rootID;
|
||||||
volume->GetCapabilities(reply->capabilities);
|
if (volume != NULL)
|
||||||
|
volume->GetCapabilities(reply->capabilities);
|
||||||
|
|
||||||
// send the reply
|
// send the reply
|
||||||
return _SendReply(allocator, false);
|
return _SendReply(allocator, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user