From f55afbd5f10627903ad75d08a8cf71756cf91b21 Mon Sep 17 00:00:00 2001 From: Ruby Martin Date: Mon, 16 Mar 2026 17:12:17 -0600 Subject: [PATCH] fix more null derefs --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 67086e3c5b7..ee6aa504135 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -37201,7 +37201,7 @@ int wc_EccPrivateKeyDecode(const byte* input, word32* inOutIdx, ecc_key* key, key, curve_id); } - FREE_ASNGETDATA(dataASN, key->heap); + FREE_ASNGETDATA(dataASN, key != NULL ? key->heap : NULL); return ret; #endif }