check for sharedSecretID length greater than 0 before using
This commit is contained in:
		| @@ -3096,7 +3096,7 @@ miCASAGetCredential | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	// 4. if still no secret, did caller pass in a suggested sharedSecretID? | 	// 4. if still no secret, did caller pass in a suggested sharedSecretID? | ||||||
| 	if(rcode && sharedSecretID) | 	if(rcode && sharedSecretID && (sharedSecretID->len > 0)) | ||||||
| 	{ | 	{ | ||||||
| 		// let's look for it. | 		// let's look for it. | ||||||
| 		secID.type = SSCS_CREDENTIAL_TYPE_F; | 		secID.type = SSCS_CREDENTIAL_TYPE_F; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user