diff options
-rw-r--r-- | lib/x509/pkcs7.c | 11 | ||||
-rw-r--r-- | lib/x509/x509_int.h | 1 |
2 files changed, 4 insertions, 8 deletions
diff --git a/lib/x509/pkcs7.c b/lib/x509/pkcs7.c index 984e4d90af..b10faa3a3b 100644 --- a/lib/x509/pkcs7.c +++ b/lib/x509/pkcs7.c @@ -145,14 +145,11 @@ gnutls_pkcs7_import(gnutls_pkcs7_t pkcs7, const gnutls_datum_t * data, need_free = 1; } - if (pkcs7->expanded) { - result = pkcs7_reinit(pkcs7); - if (result < 0) { - gnutls_assert(); - goto cleanup; - } + result = pkcs7_reinit(pkcs7); + if (result < 0) { + gnutls_assert(); + goto cleanup; } - pkcs7->expanded = 1; result = asn1_der_decoding(&pkcs7->pkcs7, _data.data, _data.size, NULL); if (result != ASN1_SUCCESS) { diff --git a/lib/x509/x509_int.h b/lib/x509/x509_int.h index acbc185c71..55cbd240ab 100644 --- a/lib/x509/x509_int.h +++ b/lib/x509/x509_int.h @@ -128,7 +128,6 @@ typedef struct gnutls_pkcs7_int { gnutls_datum_t der_signed_data; asn1_node signed_data; - unsigned expanded; } gnutls_pkcs7_int; struct pbkdf2_params { |