summaryrefslogtreecommitdiffstats
path: root/crypto/pkcs7/example.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-03-05 02:05:15 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-03-05 02:05:15 +0000
commit924acc5451028abd3218be96cce346596fb3ad6d (patch)
tree45f25cb6829b3c052dde746e09440f68c3620879 /crypto/pkcs7/example.c
parentd00b7aad5add9864147635279b951fbe8a7656b7 (diff)
Fix the PKCS#7 stuff: signature verify could fail if attributes reordered, the
detached data encoding was wrong and free up public keys.
Diffstat (limited to 'crypto/pkcs7/example.c')
-rw-r--r--crypto/pkcs7/example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pkcs7/example.c b/crypto/pkcs7/example.c
index 9309e1d5ef..7dd81e3023 100644
--- a/crypto/pkcs7/example.c
+++ b/crypto/pkcs7/example.c
@@ -135,7 +135,7 @@ char **str2;
OBJ_create("1.9.9999","OID_example","Our example OID");
/* To retrieve */
so=PKCS7_get_signed_attribute(si,signed_seq2string_nid);
- if (so->type == V_ASN1_SEQUENCE)
+ if (so && (so->type == V_ASN1_SEQUENCE))
{
ASN1_CTX c;
ASN1_STRING *s;