Skip to content

Commit f55afbd

Browse files
committed
fix more null derefs
1 parent b5c5327 commit f55afbd

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
@@ -37201,7 +37201,7 @@ int wc_EccPrivateKeyDecode(const byte* input, word32* inOutIdx, ecc_key* key,
3720137201
key, curve_id);
3720237202
}
3720337203

37204-
FREE_ASNGETDATA(dataASN, key->heap);
37204+
FREE_ASNGETDATA(dataASN, key != NULL ? key->heap : NULL);
3720537205
return ret;
3720637206
#endif
3720737207
}

0 commit comments

Comments
 (0)