diff options
Diffstat (limited to 'lib/x509/pkcs7.c')
-rw-r--r-- | lib/x509/pkcs7.c | 11 |
1 files changed, 4 insertions, 7 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) { |