diff options
Diffstat (limited to 'src/lib/libcrypto/pkcs7/pk7_doit.c')
-rw-r--r-- | src/lib/libcrypto/pkcs7/pk7_doit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/pkcs7/pk7_doit.c b/src/lib/libcrypto/pkcs7/pk7_doit.c index 7755c3c30e..50e4fe39c1 100644 --- a/src/lib/libcrypto/pkcs7/pk7_doit.c +++ b/src/lib/libcrypto/pkcs7/pk7_doit.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pk7_doit.c,v 1.37 2015/09/10 15:56:25 jsing Exp $ */ | 1 | /* $OpenBSD: pk7_doit.c,v 1.38 2015/09/30 18:41:06 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 | * |
@@ -745,7 +745,7 @@ PKCS7_dataFinal(PKCS7 *p7, BIO *bio) | |||
745 | si_sk = p7->d.signed_and_enveloped->signer_info; | 745 | si_sk = p7->d.signed_and_enveloped->signer_info; |
746 | os = p7->d.signed_and_enveloped->enc_data->enc_data; | 746 | os = p7->d.signed_and_enveloped->enc_data->enc_data; |
747 | if (!os) { | 747 | if (!os) { |
748 | os = M_ASN1_OCTET_STRING_new(); | 748 | os = ASN1_OCTET_STRING_new(); |
749 | if (!os) { | 749 | if (!os) { |
750 | PKCS7err(PKCS7_F_PKCS7_DATAFINAL, | 750 | PKCS7err(PKCS7_F_PKCS7_DATAFINAL, |
751 | ERR_R_MALLOC_FAILURE); | 751 | ERR_R_MALLOC_FAILURE); |
@@ -758,7 +758,7 @@ PKCS7_dataFinal(PKCS7 *p7, BIO *bio) | |||
758 | /* XXX */ | 758 | /* XXX */ |
759 | os = p7->d.enveloped->enc_data->enc_data; | 759 | os = p7->d.enveloped->enc_data->enc_data; |
760 | if (!os) { | 760 | if (!os) { |
761 | os = M_ASN1_OCTET_STRING_new(); | 761 | os = ASN1_OCTET_STRING_new(); |
762 | if (!os) { | 762 | if (!os) { |
763 | PKCS7err(PKCS7_F_PKCS7_DATAFINAL, | 763 | PKCS7err(PKCS7_F_PKCS7_DATAFINAL, |
764 | ERR_R_MALLOC_FAILURE); | 764 | ERR_R_MALLOC_FAILURE); |
@@ -776,7 +776,7 @@ PKCS7_dataFinal(PKCS7 *p7, BIO *bio) | |||
776 | } | 776 | } |
777 | /* If detached data then the content is excluded */ | 777 | /* If detached data then the content is excluded */ |
778 | if (PKCS7_type_is_data(p7->d.sign->contents) && p7->detached) { | 778 | if (PKCS7_type_is_data(p7->d.sign->contents) && p7->detached) { |
779 | M_ASN1_OCTET_STRING_free(os); | 779 | ASN1_OCTET_STRING_free(os); |
780 | os = NULL; | 780 | os = NULL; |
781 | p7->d.sign->contents->d.data = NULL; | 781 | p7->d.sign->contents->d.data = NULL; |
782 | } | 782 | } |
@@ -791,7 +791,7 @@ PKCS7_dataFinal(PKCS7 *p7, BIO *bio) | |||
791 | /* If detached data then the content is excluded */ | 791 | /* If detached data then the content is excluded */ |
792 | if (PKCS7_type_is_data(p7->d.digest->contents) && | 792 | if (PKCS7_type_is_data(p7->d.digest->contents) && |
793 | p7->detached) { | 793 | p7->detached) { |
794 | M_ASN1_OCTET_STRING_free(os); | 794 | ASN1_OCTET_STRING_free(os); |
795 | os = NULL; | 795 | os = NULL; |
796 | p7->d.digest->contents->d.data = NULL; | 796 | p7->d.digest->contents->d.data = NULL; |
797 | } | 797 | } |