[Bug 334327] pk11_CreateNewContextInSlot: Variable "(context)->key" tracked as NULL was passed to a function that dereferences it. r=alexei
This commit is contained in:
alexei.volkov.bugs%sun.com 2006-04-19 22:32:30 +00:00
Родитель ba0b2b3b4a
Коммит c501854878
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -249,7 +249,7 @@ static PK11Context *pk11_CreateNewContextInSlot(CK_MECHANISM_TYPE type,
SECStatus rv;
PORT_Assert(slot != NULL);
if (!slot) {
if (!slot || (!symKey && operation != CKA_DIGEST)) {
PORT_SetError(SEC_ERROR_INVALID_ARGS);
return NULL;
}