Fixed problems found during testing of no mech-info changes.
This commit is contained in:
parent
a7ff509dce
commit
ff6c1b9993
@ -211,7 +211,7 @@ AuthTokenIf_GetAuthToken(
|
||||
pKrbServiceName = malloc(5 /*"host/"*/ + strlen(pHostName) + 1 /*'/0'*/)
|
||||
if (pKrbServiceName)
|
||||
{
|
||||
sprintf("host/%s", pHostName);
|
||||
sprintf(pKrbServiceName, "host/%s", pHostName);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -107,7 +107,7 @@ AuthTokenIf_GetAuthToken(
|
||||
// Validate input parameters
|
||||
if (pIfInstance == NULL
|
||||
|| pContext == NULL
|
||||
|| pHostName
|
||||
|| pHostName == NULL
|
||||
|| pTokenBufLen == NULL
|
||||
|| (pTokenBuf == NULL && *pTokenBufLen != 0))
|
||||
{
|
||||
@ -127,7 +127,7 @@ AuthTokenIf_GetAuthToken(
|
||||
pKrbServiceName = malloc(5 /*"host/"*/ + strlen(pHostName) + 1 /*'/0'*/);
|
||||
if (pKrbServiceName)
|
||||
{
|
||||
sprintf("host/%s", pHostName);
|
||||
sprintf(pKrbServiceName, "host/%s", pHostName);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user