From 5c257e15bbac83560f1b9f2f29534c37d7bc2452 Mon Sep 17 00:00:00 2001 From: Ruby Martin Date: Thu, 26 Feb 2026 14:55:31 -0700 Subject: [PATCH] remove redundant NULL check --- wolfcrypt/src/asn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 7ace4c5b6d..af1a2ef917 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -11376,8 +11376,7 @@ int wc_RsaPublicKeyDecode_ex(const byte* input, word32* inOutIdx, word32 inSz, if (ret != 0) { /* Didn't work - try whole SubjectKeyInfo instead. Reset index * to caller's start since the previous attempt advanced it. */ - if (inOutIdx != NULL) - *inOutIdx = startIdx; + *inOutIdx = startIdx; #ifdef WC_RSA_PSS /* Could be RSA or RSA PSS key. */ GetASN_OID(&dataASN[RSAPUBLICKEYASN_IDX_ALGOID_OID], oidKeyType);