summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pkcs7/pk7_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/pkcs7/pk7_lib.c')
-rw-r--r--src/lib/libcrypto/pkcs7/pk7_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/pkcs7/pk7_lib.c b/src/lib/libcrypto/pkcs7/pk7_lib.c
index dc407dad55..28f812a811 100644
--- a/src/lib/libcrypto/pkcs7/pk7_lib.c
+++ b/src/lib/libcrypto/pkcs7/pk7_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pk7_lib.c,v 1.19 2017/01/29 17:49:23 beck Exp $ */ 1/* $OpenBSD: pk7_lib.c,v 1.20 2019/03/13 20:34:00 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -374,7 +374,7 @@ PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
374 * things the ugly way. */ 374 * things the ugly way. */
375 ASN1_INTEGER_free(p7i->issuer_and_serial->serial); 375 ASN1_INTEGER_free(p7i->issuer_and_serial->serial);
376 if (!(p7i->issuer_and_serial->serial = 376 if (!(p7i->issuer_and_serial->serial =
377 ASN1_STRING_dup(X509_get_serialNumber(x509)))) 377 ASN1_INTEGER_dup(X509_get_serialNumber(x509))))
378 goto err; 378 goto err;
379 379
380 /* lets keep the pkey around for a while */ 380 /* lets keep the pkey around for a while */
@@ -534,7 +534,7 @@ PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509)
534 534
535 ASN1_INTEGER_free(p7i->issuer_and_serial->serial); 535 ASN1_INTEGER_free(p7i->issuer_and_serial->serial);
536 if (!(p7i->issuer_and_serial->serial = 536 if (!(p7i->issuer_and_serial->serial =
537 ASN1_STRING_dup(X509_get_serialNumber(x509)))) 537 ASN1_INTEGER_dup(X509_get_serialNumber(x509))))
538 return 0; 538 return 0;
539 539
540 pkey = X509_get_pubkey(x509); 540 pkey = X509_get_pubkey(x509);