mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
bug 994932 - fix error checking in GetOCSPResponseForType r=retornam
This commit is contained in:
parent
1581ac5d3f
commit
d14751b88b
@ -139,8 +139,12 @@ GetOCSPResponseForType(OCSPResponseType aORT, CERTCertificate *aCert,
|
||||
}
|
||||
|
||||
SECItemArray* arr = SECITEM_AllocArray(aArena, nullptr, 1);
|
||||
arr->items[0].data = response ? response->data : nullptr;
|
||||
arr->items[0].len = response ? response->len : 0;
|
||||
if (!arr) {
|
||||
PrintPRError("SECITEM_AllocArray failed");
|
||||
return nullptr;
|
||||
}
|
||||
arr->items[0].data = response->data;
|
||||
arr->items[0].len = response->len;
|
||||
|
||||
return arr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user