Make sure *outl is always initialized in EVP_EncryptUpdate().
This commit is contained in:
parent
1241126adf
commit
dc706cd35f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user