Fixed crash that would occur if an RPC would succeed but no without
response data. -This line, and those below, will be ignored-- M client/library/engine.c
This commit is contained in:
parent
b985dd634e
commit
32093affcb
@ -165,6 +165,9 @@ ObtainSessionToken(
|
||||
&pRespMsg,
|
||||
&respLen);
|
||||
if (CASA_SUCCESS(retStatus))
|
||||
{
|
||||
if (pRespMsg
|
||||
&& respLen != 0)
|
||||
{
|
||||
AuthenticateResp *pAuthenticateResp;
|
||||
|
||||
@ -186,6 +189,11 @@ ObtainSessionToken(
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DbgTrace(0, "-ObtainSessionToken- Did not receive Authenticate Response data\n", 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DbgTrace(0, "-ObtainSessionToken- Authenticate Rpc failure, error = %08X\n", retStatus);
|
||||
}
|
||||
@ -329,6 +337,9 @@ ObtainAuthTokenFromServer(
|
||||
&pRespMsg,
|
||||
&respLen);
|
||||
if (CASA_SUCCESS(retStatus))
|
||||
{
|
||||
if (pRespMsg
|
||||
&& respLen != 0)
|
||||
{
|
||||
// Create GetAuthPolicy response object
|
||||
retStatus = CreateGetAuthPolicyResp(pRespMsg, respLen, &pGetAuthPolicyResp);
|
||||
@ -365,6 +376,9 @@ ObtainAuthTokenFromServer(
|
||||
&pRespMsg,
|
||||
&respLen);
|
||||
if (CASA_SUCCESS(retStatus))
|
||||
{
|
||||
if (pRespMsg
|
||||
&& respLen != 0)
|
||||
{
|
||||
// Create GetAuthPolicy response object
|
||||
retStatus = CreateGetAuthTokenResp(pRespMsg, respLen, &pGetAuthTokenResp);
|
||||
@ -381,6 +395,11 @@ ObtainAuthTokenFromServer(
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DbgTrace(0, "-ObtainAuthTokenFromServer- Did not receive GetAuthToken Response data\n", 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DbgTrace(0, "-ObtainAuthTokenFromServer- GetAuthToken Rpc failure, error = %08X\n", retStatus);
|
||||
}
|
||||
@ -409,6 +428,11 @@ ObtainAuthTokenFromServer(
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DbgTrace(0, "-ObtainAuthTokenFromServer- Did not receive GetAuthPolicy Response data\n", 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DbgTrace(0, "-ObtainAuthTokenFromServer- GetAuthPolicy Rpc failure, error = %08X\n", retStatus);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user