Addition Parameter check
This commit is contained in:
parent
551b155271
commit
d2592918a5
@ -3101,7 +3101,7 @@ miCASAGetCredential
|
||||
}
|
||||
|
||||
// 4. if still no secret, did caller pass in a suggested sharedSecretID?
|
||||
if(rcode && sharedSecretID && (sharedSecretID->len > 0))
|
||||
if(rcode && sharedSecretID && (sharedSecretID->len > 1))
|
||||
{
|
||||
// let's look for it.
|
||||
secID.type = SSCS_CREDENTIAL_TYPE_F;
|
||||
@ -3358,8 +3358,8 @@ miCASASetCredential
|
||||
}
|
||||
|
||||
// 3. did caller pass in a suggested sharedSecretID?
|
||||
if(rcode && sharedSecretID)
|
||||
{
|
||||
if(rcode && sharedSecretID && (sharedSecretID->len > 1))
|
||||
{
|
||||
vLen = basicCred->unLen;
|
||||
rcode = miCASAWriteKey(context, ssFlags, &kc, sharedSecretID, usernameKeyname, unkLen, basicCred->username, vLen, NULL, ext);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user