зеркало из https://github.com/mozilla/gecko-dev.git
Patch contributed by nelson@bolyard.com.
[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:
Родитель
ba0b2b3b4a
Коммит
c501854878
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче