Fix the update target and remove duplicate file updates
[openssl.git] / crypto / evp / encode.c
index 53cc5863968152e1f10a0d7d0837ac7a84d4c863..c361d1f0126994d8d4f84cae08d3083cfed0910d 100644 (file)
@@ -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) {