fix warning about NULL compare

This commit is contained in:
Jacob Barthelmeh
2021-12-27 10:02:16 -07:00
parent 4e1c39b4c6
commit 5a4e59c09d

View File

@ -22775,7 +22775,7 @@ static int SetNameRdnItems(ASNSetData* dataASN, ASNItem* namesASN,
#endif
if (nameLen[i] > 0) {
if (dataASN != NULL && nameASN != NULL) {
if (dataASN != NULL) {
if (idx > maxIdx - (int)rdnASN_Length) {
WOLFSSL_MSG("Wanted to write more ASN than allocated");
ret = BUFFER_E;