mirror of
https://github.com/openssl/openssl.git
synced 2025-03-31 20:10:45 +08:00
coverity 1462562 Dereference before null check
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11651)
This commit is contained in:
parent
70e18f9dce
commit
437e36aed5
@ -75,10 +75,8 @@ static int run_extra_kat(const struct drbg_extra_kat *td)
|
||||
failures++;
|
||||
|
||||
err:
|
||||
if (drbg != NULL) {
|
||||
RAND_DRBG_uninstantiate(drbg);
|
||||
RAND_DRBG_free(drbg);
|
||||
}
|
||||
RAND_DRBG_uninstantiate(drbg);
|
||||
RAND_DRBG_free(drbg);
|
||||
return failures == 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user