summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509cset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509cset.c')
-rw-r--r--src/lib/libcrypto/x509/x509cset.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/x509cset.c b/src/lib/libcrypto/x509/x509cset.c
index a4442632f6..94c419301a 100644
--- a/src/lib/libcrypto/x509/x509cset.c
+++ b/src/lib/libcrypto/x509/x509cset.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509cset.c,v 1.8 2014/07/11 08:44:49 jsing Exp $ */ 1/* $OpenBSD: x509cset.c,v 1.9 2015/07/29 14:58:34 jsing Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2001. 3 * project 2001.
4 */ 4 */
@@ -92,7 +92,7 @@ X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm)
92 return (0); 92 return (0);
93 in = x->crl->lastUpdate; 93 in = x->crl->lastUpdate;
94 if (in != tm) { 94 if (in != tm) {
95 in = M_ASN1_TIME_dup(tm); 95 in = ASN1_STRING_dup(tm);
96 if (in != NULL) { 96 if (in != NULL) {
97 M_ASN1_TIME_free(x->crl->lastUpdate); 97 M_ASN1_TIME_free(x->crl->lastUpdate);
98 x->crl->lastUpdate = in; 98 x->crl->lastUpdate = in;
@@ -110,7 +110,7 @@ X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm)
110 return (0); 110 return (0);
111 in = x->crl->nextUpdate; 111 in = x->crl->nextUpdate;
112 if (in != tm) { 112 if (in != tm) {
113 in = M_ASN1_TIME_dup(tm); 113 in = ASN1_STRING_dup(tm);
114 if (in != NULL) { 114 if (in != NULL) {
115 M_ASN1_TIME_free(x->crl->nextUpdate); 115 M_ASN1_TIME_free(x->crl->nextUpdate);
116 x->crl->nextUpdate = in; 116 x->crl->nextUpdate = in;
@@ -145,7 +145,7 @@ X509_REVOKED_set_revocationDate(X509_REVOKED *x, ASN1_TIME *tm)
145 return (0); 145 return (0);
146 in = x->revocationDate; 146 in = x->revocationDate;
147 if (in != tm) { 147 if (in != tm) {
148 in = M_ASN1_TIME_dup(tm); 148 in = ASN1_STRING_dup(tm);
149 if (in != NULL) { 149 if (in != NULL) {
150 M_ASN1_TIME_free(x->revocationDate); 150 M_ASN1_TIME_free(x->revocationDate);
151 x->revocationDate = in; 151 x->revocationDate = in;
@@ -163,7 +163,7 @@ X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial)
163 return (0); 163 return (0);
164 in = x->serialNumber; 164 in = x->serialNumber;
165 if (in != serial) { 165 if (in != serial) {
166 in = M_ASN1_INTEGER_dup(serial); 166 in = ASN1_STRING_dup(serial);
167 if (in != NULL) { 167 if (in != NULL) {
168 M_ASN1_INTEGER_free(x->serialNumber); 168 M_ASN1_INTEGER_free(x->serialNumber);
169 x->serialNumber = in; 169 x->serialNumber = in;