diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2001-04-21 12:06:01 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2001-04-21 12:06:01 +0000 |
commit | c962479bdf4379bcd21733e55bb8d3e6cabca055 (patch) | |
tree | 6e01ea534b74649f4f52382d442c0024f90f7b33 /crypto/asn1/x_pubkey.c | |
parent | b31ccc362cf1bd27b1f292f67c799cb5296ca73e (diff) |
Fix ASN1 bug when decoding OTHER type.
Various S/MIME DSA related fixes.
Diffstat (limited to 'crypto/asn1/x_pubkey.c')
-rw-r--r-- | crypto/asn1/x_pubkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/x_pubkey.c b/crypto/asn1/x_pubkey.c index c4a849aff1..9f28daf781 100644 --- a/crypto/asn1/x_pubkey.c +++ b/crypto/asn1/x_pubkey.c @@ -198,7 +198,7 @@ EVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key) a=key->algor; if (ret->type == EVP_PKEY_DSA) { - if (a->parameter->type == V_ASN1_SEQUENCE) + if (a->parameter && (a->parameter->type == V_ASN1_SEQUENCE)) { ret->pkey.dsa->write_params=0; cp=p=a->parameter->value.sequence->data; |