mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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).
This commit is contained in:
committed by
Nick Mathewson
parent
b48f8a8114
commit
45681f695c
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user