Skip to content

Commit 056b952

Browse files
authored
Merge pull request #9990 from rlm2002/coverity
Coverity: fix more null derefs
2 parents 42581e4 + f55afbd commit 056b952

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37203,7 +37203,7 @@ int wc_EccPrivateKeyDecode(const byte* input, word32* inOutIdx, ecc_key* key,
3720337203
key, curve_id);
3720437204
}
3720537205

37206-
FREE_ASNGETDATA(dataASN, key->heap);
37206+
FREE_ASNGETDATA(dataASN, key != NULL ? key->heap : NULL);
3720737207
return ret;
3720837208
#endif
3720937209
}

0 commit comments

Comments
 (0)