Check for secretID being NULL before checking length

This commit is contained in:
Jim Norman 2006-04-19 21:52:01 +00:00
parent ac0dbfc4e4
commit 06fdeaedaf

View File

@ -3523,7 +3523,7 @@ miCASAIsSecretPersistent
return NSSCS_E_INVALID_PARAM;
}
if(secretID->len > NSSCS_MAX_SECRET_ID_LEN)
if(secretID && secretID->len > NSSCS_MAX_SECRET_ID_LEN)
{
return NSSCS_E_BUFFER_LEN;
}