Commit 73705abc authored by Ben Laurie's avatar Ben Laurie
Browse files

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

parent 12bdb643
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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