diff options
Diffstat (limited to 'src/lib/libcrypto/pkcs7/pk7_lib.c')
-rw-r--r-- | src/lib/libcrypto/pkcs7/pk7_lib.c | 6 |
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 9f7e4f2dd3..7aedc3c44e 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.16 2015/07/29 14:58:34 jsing Exp $ */ | 1 | /* $OpenBSD: pk7_lib.c,v 1.17 2015/09/30 17:30:15 jsing 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 | * |
@@ -378,7 +378,7 @@ PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey, | |||
378 | 378 | ||
379 | /* because ASN1_INTEGER_set is used to set a 'long' we will do | 379 | /* because ASN1_INTEGER_set is used to set a 'long' we will do |
380 | * things the ugly way. */ | 380 | * things the ugly way. */ |
381 | M_ASN1_INTEGER_free(p7i->issuer_and_serial->serial); | 381 | ASN1_INTEGER_free(p7i->issuer_and_serial->serial); |
382 | if (!(p7i->issuer_and_serial->serial = | 382 | if (!(p7i->issuer_and_serial->serial = |
383 | ASN1_STRING_dup(X509_get_serialNumber(x509)))) | 383 | ASN1_STRING_dup(X509_get_serialNumber(x509)))) |
384 | goto err; | 384 | goto err; |
@@ -543,7 +543,7 @@ PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509) | |||
543 | X509_get_issuer_name(x509))) | 543 | X509_get_issuer_name(x509))) |
544 | return 0; | 544 | return 0; |
545 | 545 | ||
546 | M_ASN1_INTEGER_free(p7i->issuer_and_serial->serial); | 546 | ASN1_INTEGER_free(p7i->issuer_and_serial->serial); |
547 | if (!(p7i->issuer_and_serial->serial = | 547 | if (!(p7i->issuer_and_serial->serial = |
548 | ASN1_STRING_dup(X509_get_serialNumber(x509)))) | 548 | ASN1_STRING_dup(X509_get_serialNumber(x509)))) |
549 | return 0; | 549 | return 0; |