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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509cset.c b/src/lib/libcrypto/x509/x509cset.c
index 94c419301a..a0fbdfbc3b 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.9 2015/07/29 14:58:34 jsing Exp $ */ 1/* $OpenBSD: x509cset.c,v 1.10 2015/09/30 17:30:16 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 */
@@ -69,7 +69,7 @@ X509_CRL_set_version(X509_CRL *x, long version)
69 if (x == NULL) 69 if (x == NULL)
70 return (0); 70 return (0);
71 if (x->crl->version == NULL) { 71 if (x->crl->version == NULL) {
72 if ((x->crl->version = M_ASN1_INTEGER_new()) == NULL) 72 if ((x->crl->version = ASN1_INTEGER_new()) == NULL)
73 return (0); 73 return (0);
74 } 74 }
75 return (ASN1_INTEGER_set(x->crl->version, version)); 75 return (ASN1_INTEGER_set(x->crl->version, version));
@@ -163,9 +163,9 @@ 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 = ASN1_STRING_dup(serial); 166 in = ASN1_INTEGER_dup(serial);
167 if (in != NULL) { 167 if (in != NULL) {
168 M_ASN1_INTEGER_free(x->serialNumber); 168 ASN1_INTEGER_free(x->serialNumber);
169 x->serialNumber = in; 169 x->serialNumber = in;
170 } 170 }
171 } 171 }