--- /usr/src/openssl-0.9.6c-3/crypto/evp/evp_enc.c	Fri Jan 11 16:52:03 2002
+++ ./evp_enc.c	Wed May  1 10:25:11 2002
@@ -203,6 +203,7 @@ int EVP_EncryptFinal(EVP_CIPHER_CTX *ctx
 	n=b-bl;
 	for (i=bl; i<b; i++)
 		ctx->buf[i]=n;
+	ctx->buf_len = 0;
 	if(!ctx->cipher->do_cipher(ctx,out,ctx->buf,b)) return 0;
 	*outl=b;
 	return 1;
