Make sure *outl is always initialized in EVP_EncryptUpdate().

This commit is contained in:
Dr. Stephen Henson 2001-07-27 02:24:47 +00:00
parent 1241126adf
commit dc706cd35f

View File

@ -197,6 +197,8 @@ int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl,
*outl=bl;
}
}
else
*outl = 0;
i=inl&(bl-1);
inl-=i;
if (inl > 0)