mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 20:14:20 +08:00
Fix potential null problem.
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4313)
This commit is contained in:
parent
ccb76685e0
commit
3907872f72
@ -473,13 +473,13 @@ void aria_encrypt(const unsigned char *in, unsigned char *out,
|
||||
{
|
||||
register uint32_t reg0, reg1, reg2, reg3;
|
||||
int Nr;
|
||||
|
||||
const ARIA_u128 *rk = key->rd_key;
|
||||
const ARIA_u128 *rk;
|
||||
|
||||
if (in == NULL || out == NULL || key == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
rk = key->rd_key;
|
||||
Nr = key->rounds;
|
||||
|
||||
if (Nr != 12 && Nr != 14 && Nr != 16) {
|
||||
|
Loading…
Reference in New Issue
Block a user