We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5ef6ed5 + 64667a5 commit d5d2794Copy full SHA for d5d2794
1 file changed
src/crl.c
@@ -778,7 +778,9 @@ static CRL_Entry* DupCRL_Entry(const CRL_Entry* ent, void* heap)
778
XMEMCPY(dupl->toBeSigned, ent->toBeSigned, dupl->tbsSz);
779
XMEMCPY(dupl->signature, ent->signature, dupl->signatureSz);
780
#ifdef WC_RSA_PSS
781
- XMEMCPY(dupl->sigParams, ent->sigParams, dupl->sigParamsSz);
+ if (dupl->sigParamsSz > 0) {
782
+ XMEMCPY(dupl->sigParams, ent->sigParams, dupl->sigParamsSz);
783
+ }
784
#endif
785
}
786
else {
0 commit comments