If input is bad, we still need to clear the buffer.

This commit is contained in:
Ben Laurie 2005-04-03 16:38:22 +00:00
parent 12bdb64375
commit 73705abc34

View file

@ -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