check for sharedSecretID length greater than 0 before using

This commit is contained in:
Jim Norman 2006-04-24 15:37:19 +00:00
parent 8ac8437fe7
commit 85aa2f3a40

View File

@ -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;