diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-10-01 00:18:09 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-10-01 00:18:09 +0000 |
commit | 95d66bd8672fd3cefef4a98ba743a2c7773591e9 (patch) | |
tree | 5e3e24aa26962096159326bfb71aff090993ecd2 /crypto/pem | |
parent | 6d73e9d8e85b1a84bd3bb319519089724ce2a9c1 (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++) |