diff options
author | Pauli <paul.dale@oracle.com> | 2020-04-27 08:58:59 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-04-30 20:21:32 +1000 |
commit | 437e36aed578f0a3213cc87b34abecb36bf1bde5 (patch) | |
tree | d34e8fcec3ef75a5c79830e5cc523d70bd716d6f /test | |
parent | 70e18f9dcefdf6c276531159de433f09d4179178 (diff) |
coverity 1462562 Dereference before null check
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11651)
Diffstat (limited to 'test')
-rw-r--r-- | test/drbg_extra_test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/drbg_extra_test.c b/test/drbg_extra_test.c index 8d7b8fbf8f..e7c0d77d7f 100644 --- a/test/drbg_extra_test.c +++ b/test/drbg_extra_test.c @@ -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; } |