mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 20:40:50 +02:00
Add NULL checks for context/ciphertext/out in wc_HpkeContextOpenBase F-1374
This commit is contained in:
@@ -1175,7 +1175,7 @@ int wc_HpkeContextOpenBase(Hpke* hpke, HpkeBaseContext* context, byte* aad,
|
||||
int ret;
|
||||
byte nonce[HPKE_Nn_MAX];
|
||||
WC_DECLARE_VAR(aes, Aes, 1, 0);
|
||||
if (hpke == NULL) {
|
||||
if (hpke == NULL || context == NULL || ciphertext == NULL || out == NULL) {
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user