Fixed some 64bit platform issues.
This commit is contained in:
		| @@ -122,16 +122,16 @@ AuthTokenIf_GetAuthToken( | ||||
|    // Process any mechanism information that may have been provided | ||||
|    if (pMechInfo) | ||||
|    { | ||||
|       // Allocate a buffer to hold the mech info so that we can manipulate it | ||||
|       char *pMechInfoInt = malloc(strlen(pMechInfo) + 1); | ||||
|       if (pMechInfoInt) | ||||
|       { | ||||
|       // Allocate a buffer to hold the mech info so that we can manipulate it | ||||
|       char *pMechInfoInt = malloc(strlen(pMechInfo) + 1); | ||||
|       if (pMechInfoInt) | ||||
|       { | ||||
|          char *pNextSettingToken; | ||||
|          char *pSettingValueToken; | ||||
|  | ||||
|          // Copy the mechanism info to our work buffer | ||||
|          strcpy(pMechInfoInt, pMechInfo); | ||||
|  | ||||
|          // Copy the mechanism info to our work buffer | ||||
|          strcpy(pMechInfoInt, pMechInfo); | ||||
|  | ||||
|          // Mechanism information has been provided. Mechanism information | ||||
|          // consists of semicolon delimited settings. The settings are formated | ||||
|          // using the format settingName=settingvalue. No white space is allowed | ||||
| @@ -157,18 +157,18 @@ AuthTokenIf_GetAuthToken( | ||||
|  | ||||
|             pSettingValueToken = strtok_r(NULL, ";", &pNextSettingToken); | ||||
|          } | ||||
|  | ||||
|          // Free the buffer that we allocated | ||||
|          free(pMechInfoInt); | ||||
|       } | ||||
|       else | ||||
|       { | ||||
|          DbgTrace(0, "-AuthTokenIf_GetAuthToken- Buffer allocation failure\n", 0); | ||||
|          retStatus = CasaStatusBuild(CASA_SEVERITY_ERROR, | ||||
|                                      CASA_FACILITY_PWTOKEN, | ||||
|                                      CASA_STATUS_INVALID_PARAMETER); | ||||
|          goto exit; | ||||
|       } | ||||
|  | ||||
|          // Free the buffer that we allocated | ||||
|          free(pMechInfoInt); | ||||
|       } | ||||
|       else | ||||
|       { | ||||
|          DbgTrace(0, "-AuthTokenIf_GetAuthToken- Buffer allocation failure\n", 0); | ||||
|          retStatus = CasaStatusBuild(CASA_SEVERITY_ERROR, | ||||
|                                      CASA_FACILITY_PWTOKEN, | ||||
|                                      CASA_STATUS_INVALID_PARAMETER); | ||||
|          goto exit; | ||||
|       } | ||||
|    } | ||||
|  | ||||
|    // Check if we need to construct the service name | ||||
|   | ||||
		Reference in New Issue
	
	Block a user