From 0ab8beb4809bfcf017ea250d6125c40f0e4fce56 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 11 Jul 1999 12:30:55 +0000 Subject: [PATCH] Copy flags in ASN1_STRING_dup() --- CHANGES | 3 +++ crypto/asn1/asn1_lib.c | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGES b/CHANGES index 3f32fc3d22..94cae7d52e 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,9 @@ Changes between 0.9.3a and 0.9.4 + *) Copy the flags in ASN1_STRING_dup(). + [Roman E. Pavlov ] + *) The x509 application mishandled signing requests containing DSA keys when the signing key was also DSA and the parameters didn't match. diff --git a/crypto/asn1/asn1_lib.c b/crypto/asn1/asn1_lib.c index 278b709739..95e54ed626 100644 --- a/crypto/asn1/asn1_lib.c +++ b/crypto/asn1/asn1_lib.c @@ -315,6 +315,7 @@ ASN1_STRING *ASN1_STRING_dup(ASN1_STRING *str) ASN1_STRING_free(ret); return(NULL); } + ret->flags = str->flags; return(ret); } -- 2.25.1