Fixed problems found during testing of no mech-info changes.

This commit is contained in:
Juan Carlos Luciani 2006-11-06 08:08:04 +00:00
parent a7ff509dce
commit ff6c1b9993
2 changed files with 3 additions and 3 deletions

View File

@ -211,7 +211,7 @@ AuthTokenIf_GetAuthToken(
pKrbServiceName = malloc(5 /*"host/"*/ + strlen(pHostName) + 1 /*'/0'*/) pKrbServiceName = malloc(5 /*"host/"*/ + strlen(pHostName) + 1 /*'/0'*/)
if (pKrbServiceName) if (pKrbServiceName)
{ {
sprintf("host/%s", pHostName); sprintf(pKrbServiceName, "host/%s", pHostName);
} }
else else
{ {

View File

@ -107,7 +107,7 @@ AuthTokenIf_GetAuthToken(
// Validate input parameters // Validate input parameters
if (pIfInstance == NULL if (pIfInstance == NULL
|| pContext == NULL || pContext == NULL
|| pHostName || pHostName == NULL
|| pTokenBufLen == NULL || pTokenBufLen == NULL
|| (pTokenBuf == NULL && *pTokenBufLen != 0)) || (pTokenBuf == NULL && *pTokenBufLen != 0))
{ {
@ -127,7 +127,7 @@ AuthTokenIf_GetAuthToken(
pKrbServiceName = malloc(5 /*"host/"*/ + strlen(pHostName) + 1 /*'/0'*/); pKrbServiceName = malloc(5 /*"host/"*/ + strlen(pHostName) + 1 /*'/0'*/);
if (pKrbServiceName) if (pKrbServiceName)
{ {
sprintf("host/%s", pHostName); sprintf(pKrbServiceName, "host/%s", pHostName);
} }
else else
{ {