Copy flags in ASN1_STRING_dup()

This commit is contained in:
Dr. Stephen Henson 1999-07-11 12:30:55 +00:00
parent f7daafa442
commit 0ab8beb480
2 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,9 @@
Changes between 0.9.3a and 0.9.4 Changes between 0.9.3a and 0.9.4
*) Copy the flags in ASN1_STRING_dup().
[Roman E. Pavlov <pre@mo.msk.ru>]
*) The x509 application mishandled signing requests containing DSA *) The x509 application mishandled signing requests containing DSA
keys when the signing key was also DSA and the parameters didn't match. keys when the signing key was also DSA and the parameters didn't match.

View File

@ -315,6 +315,7 @@ ASN1_STRING *ASN1_STRING_dup(ASN1_STRING *str)
ASN1_STRING_free(ret); ASN1_STRING_free(ret);
return(NULL); return(NULL);
} }
ret->flags = str->flags;
return(ret); return(ret);
} }