From 73705abc3411ac09aaea674a8fad35a019bc90f3 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sun, 3 Apr 2005 16:38:22 +0000 Subject: [PATCH] If input is bad, we still need to clear the buffer. --- crypto/evp/encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/evp/encode.c b/crypto/evp/encode.c index 2968f6460a..2d738f4b01 100644 --- a/crypto/evp/encode.c +++ b/crypto/evp/encode.c @@ -323,8 +323,8 @@ int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, if (n > 0) { v=EVP_DecodeBlock(out,d,n); - if (v < 0) { rv=0; goto end; } n=0; + if (v < 0) { rv=0; goto end; } ret+=(v-eof); } else -- 2.25.1