Fix crash in ReconnectClient and Inactivate client when IServer ptr is null (bug 6122, r=asherkin).

--HG--
extra : amend_source : a38ac59091e43118d61b9c3eda30dece4190992e
This commit is contained in:
Nicholas Hastings 2014-05-15 10:49:32 -04:00
parent 1fdf1c0264
commit 61b6a32631

View File

@ -47,7 +47,7 @@ static cell_t smn_InactivateClient(IPluginContext *pContext, const cell_t *param
if (!iserver)
{
pContext->ThrowNativeError("IServer is null");
return pContext->ThrowNativeError("IServer interface not supported, file a bug report.");
}
IClient* pClient = iserver->GetClient(params[1] - 1);
@ -74,7 +74,7 @@ static cell_t smn_ReconnectClient(IPluginContext *pContext, const cell_t *params
if (!iserver)
{
pContext->ThrowNativeError("IServer is null");
return pContext->ThrowNativeError("IServer interface not supported, file a bug report.");
}
IClient* pClient = iserver->GetClient(params[1] - 1);