We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a39f521 commit 4bedef9Copy full SHA for 4bedef9
1 file changed
src/crl.c
@@ -777,7 +777,8 @@ static CRL_Entry* DupCRL_Entry(const CRL_Entry* ent, void* heap)
777
#endif
778
if (dupl->toBeSigned == NULL || dupl->signature == NULL
779
#ifdef WC_RSA_PSS
780
- || dupl->sigParams == NULL
+ /* allow sigParamsSz is zero and malloc(0) to return NULL */
781
+ || (dupl->sigParams == NULL && dupl->sigParamsSz != 0)
782
783
) {
784
CRL_Entry_free(dupl, heap);
0 commit comments