aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssl/crypto/evp/encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/crypto/evp/encode.c')
-rw-r--r--crypto/openssl/crypto/evp/encode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/evp/encode.c b/crypto/openssl/crypto/evp/encode.c
index d1d8a07c14ad..5c5988fc45e1 100644
--- a/crypto/openssl/crypto/evp/encode.c
+++ b/crypto/openssl/crypto/evp/encode.c
@@ -137,7 +137,7 @@ void EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
unsigned int total = 0;
*outl = 0;
- if (inl == 0)
+ if (inl <= 0)
return;
OPENSSL_assert(ctx->length <= (int)sizeof(ctx->enc_data));
if ((ctx->num + inl) < ctx->length) {