projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70e18f9
)
coverity 1462562 Dereference before null check
author
Pauli
<paul.dale@oracle.com>
Sun, 26 Apr 2020 22:58:59 +0000
(08:58 +1000)
committer
Pauli
<paul.dale@oracle.com>
Thu, 30 Apr 2020 10:21:32 +0000
(20:21 +1000)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11651)
test/drbg_extra_test.c
patch
|
blob
|
history
diff --git
a/test/drbg_extra_test.c
b/test/drbg_extra_test.c
index 8d7b8fbf8f4b3d4e3242755badfc050e896e2864..e7c0d77d7f60680cb4744626f12c5cbc6a139a52 100644
(file)
--- 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;
}