commit e2f9c7d54f20219da5d75a58196f21659774cafa Author: rl1987 rl1987@sdf.lonestar.org Date: Sat Oct 24 16:21:35 2015 +0300
Avoid crashing due to double-freeing memory. --- src/test/test_tortls.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c index 944edc4..280e7fa 100644 --- a/src/test/test_tortls.c +++ b/src/test/test_tortls.c @@ -2864,6 +2864,7 @@ test_tortls_cert_new(void *ignored) ret = tor_x509_cert_new(cert); tt_assert(ret); tor_x509_cert_free(ret); + ret = NULL;
#if 0 cert = read_cert_from(validCertString);
tor-commits@lists.torproject.org