diff options
Diffstat (limited to 'src/lib/libcrypto/pem/pem_seal.c')
-rw-r--r-- | src/lib/libcrypto/pem/pem_seal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/pem/pem_seal.c b/src/lib/libcrypto/pem/pem_seal.c index 4e554e5481..59690b56ae 100644 --- a/src/lib/libcrypto/pem/pem_seal.c +++ b/src/lib/libcrypto/pem/pem_seal.c | |||
@@ -100,7 +100,7 @@ int PEM_SealInit(PEM_ENCODE_SEAL_CTX *ctx, EVP_CIPHER *type, EVP_MD *md_type, | |||
100 | 100 | ||
101 | EVP_CIPHER_CTX_init(&ctx->cipher); | 101 | EVP_CIPHER_CTX_init(&ctx->cipher); |
102 | ret=EVP_SealInit(&ctx->cipher,type,ek,ekl,iv,pubk,npubk); | 102 | ret=EVP_SealInit(&ctx->cipher,type,ek,ekl,iv,pubk,npubk); |
103 | if (!ret) goto err; | 103 | if (ret <= 0) goto err; |
104 | 104 | ||
105 | /* base64 encode the keys */ | 105 | /* base64 encode the keys */ |
106 | for (i=0; i<npubk; i++) | 106 | for (i=0; i<npubk; i++) |