diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-02-23 22:21:09 +0000 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-02-23 22:21:09 +0000 |
commit | 115779ad2e3f27f8cc4b5ad9956a22a3921d6edd (patch) | |
tree | 0850345c8f43dbbc9b058cb8bba23038508b6933 /tests/pkcs7.c | |
parent | c0af09dee671d90f69e40fdfa5e0117cd995ef18 (diff) | |
parent | 6b5cbc9ea5bdca704bdbe2f8fb551f720d634bc6 (diff) | |
download | gnutls-115779ad2e3f27f8cc4b5ad9956a22a3921d6edd.tar.gz |
Merge branch 'tmp-reset-after-free' into 'master'
Automatically NULLify after gnutls_free()
See merge request gnutls/gnutls!923
Diffstat (limited to 'tests/pkcs7.c')
-rw-r--r-- | tests/pkcs7.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/pkcs7.c b/tests/pkcs7.c index a490976fc5..2d5a5548d4 100644 --- a/tests/pkcs7.c +++ b/tests/pkcs7.c @@ -90,7 +90,6 @@ static int getnextfile(DIR **dirp, gnutls_datum_t *der, int *exp_ret) *exp_ret = atoi((char*)local.data); success("expecting error code %d\n", *exp_ret); gnutls_free(local.data); - local.data = NULL; } return 0; @@ -134,7 +133,6 @@ void doit(void) gnutls_pkcs7_deinit(cert); gnutls_free(der.data); - der.data = NULL; der.size = 0; exp_ret = -1; } |