From: Ben Laurie Date: Sun, 3 Apr 2005 16:38:22 +0000 (+0000) Subject: If input is bad, we still need to clear the buffer. X-Git-Tag: OpenSSL_0_9_7g~7^2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73705abc3411ac09aaea674a8fad35a019bc90f3;p=openssl If input is bad, we still need to clear the buffer. --- 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