summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSteven Chamberlain <steven@pyro.eu.org>2016-02-29 14:09:07 +0000
committerNick Mathewson <nickm@torproject.org>2016-03-17 19:20:36 -0400
commit45681f695c6096e280bc7ec3bf0a67c27708dbbc (patch)
tree046999daf128dd4f83303c23e457dad5c547f50f /src
parentb48f8a8114575793046a8e9d3544d6b2d0a17f82 (diff)
downloadtor-45681f695c6096e280bc7ec3bf0a67c27708dbbc.tar.gz
tor-45681f695c6096e280bc7ec3bf0a67c27708dbbc.zip
test_options.c: NULL a pointer after free #18447
tdata will be double-freed if none of linux, __FreeBSD__, DARWIN or __OpenBSD__ are defined. (For example, FreeBSD derivatives).
Diffstat (limited to 'src')
-rw-r--r--src/test/test_options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c
index d294e607a2..9ea57189ef 100644
--- a/src/test/test_options.c
+++ b/src/test/test_options.c
@@ -1078,6 +1078,7 @@ test_options_validate__transproxy(void *ignored)
// Test trans proxy success
free_options_test_data(tdata);
+ tdata = NULL;
#if defined(linux)
tdata = get_options_test_data("TransProxyType tproxy\n"