summaryrefslogtreecommitdiffstats
path: root/test/danetest.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2017-07-06 09:10:28 +1000
committerPauli <paul.dale@oracle.com>2017-07-14 07:31:29 +1000
commit9e206ce5f80172136b503ca23fbd8e53b78eb4b7 (patch)
treed3942855040ebee306a234140f9f62b5d33177f3 /test/danetest.c
parentd72a00416a0691bfd4920008767221bb4082a2ed (diff)
Fix some issues raise by coverity in the tests.
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3846)
Diffstat (limited to 'test/danetest.c')
-rw-r--r--test/danetest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/danetest.c b/test/danetest.c
index 89d6fb88ec..a0fd0ce74b 100644
--- a/test/danetest.c
+++ b/test/danetest.c
@@ -133,6 +133,8 @@ static STACK_OF(X509) *load_chain(BIO *fp, int nelem)
OPENSSL_free(name);
OPENSSL_free(header);
OPENSSL_free(data);
+ name = header = NULL;
+ data = NULL;
}
if (count == nelem) {