Skip to content

Commit 5c257e1

Browse files
committed
remove redundant NULL check
1 parent 7a8550c commit 5c257e1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11376,8 +11376,7 @@ int wc_RsaPublicKeyDecode_ex(const byte* input, word32* inOutIdx, word32 inSz,
1137611376
if (ret != 0) {
1137711377
/* Didn't work - try whole SubjectKeyInfo instead. Reset index
1137811378
* to caller's start since the previous attempt advanced it. */
11379-
if (inOutIdx != NULL)
11380-
*inOutIdx = startIdx;
11379+
*inOutIdx = startIdx;
1138111380
#ifdef WC_RSA_PSS
1138211381
/* Could be RSA or RSA PSS key. */
1138311382
GetASN_OID(&dataASN[RSAPUBLICKEYASN_IDX_ALGOID_OID], oidKeyType);

0 commit comments

Comments
 (0)