diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-10-01 00:17:35 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-10-01 00:17:35 +0000 |
commit | 9fc601cfbbe7eac457b3628f2455154d59883fa7 (patch) | |
tree | 39c89478fafb48d21f3ebdaf70f54f7c35dcf38c /crypto/pem | |
parent | fed5333248ef4635422ccf482e4837394c85f24c (diff) |
PR: 2059
Submitted by: Julia Lawall <julia@diku.dk>
Approved by: steve@openssl.org
Correct EVP_SealInit error handling in pem_seal.c
Diffstat (limited to 'crypto/pem')
-rw-r--r-- | crypto/pem/pem_seal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pem/pem_seal.c b/crypto/pem/pem_seal.c index 4e554e5481..59690b56ae 100644 --- a/crypto/pem/pem_seal.c +++ b/crypto/pem/pem_seal.c @@ -100,7 +100,7 @@ int PEM_SealInit(PEM_ENCODE_SEAL_CTX *ctx, EVP_CIPHER *type, EVP_MD *md_type, EVP_CIPHER_CTX_init(&ctx->cipher); ret=EVP_SealInit(&ctx->cipher,type,ek,ekl,iv,pubk,npubk); - if (!ret) goto err; + if (ret <= 0) goto err; /* base64 encode the keys */ for (i=0; i<npubk; i++) |