aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-07-23 10:13:29 -0400
committerNick Mathewson <nickm@torproject.org>2019-07-24 15:21:56 -0400
commit57e87cc86cce0b9fb351b1862f99c84bfa8100eb (patch)
tree38b5ba153f209fe127ad61a95cf30c9adf4443fa /src/test/fuzz
parenta1b2817abefc5c696e469fa4fd8a09cc5f286aa6 (diff)
downloadtor-57e87cc86cce0b9fb351b1862f99c84bfa8100eb.tar.gz
tor-57e87cc86cce0b9fb351b1862f99c84bfa8100eb.zip
Use config_new() to construct configuration objects.
We'll need to do it this way once the objects become more complex.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r--src/test/fuzz/fuzzing_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/fuzzing_common.c b/src/test/fuzz/fuzzing_common.c
index 6d0f9d7d60..1285d94aee 100644
--- a/src/test/fuzz/fuzzing_common.c
+++ b/src/test/fuzz/fuzzing_common.c
@@ -111,7 +111,7 @@ global_init(void)
}
/* set up the options. */
- mock_options = tor_malloc_zero(sizeof(or_options_t));
+ mock_options = options_new();
MOCK(get_options, mock_get_options);
/* Make BUG() and nonfatal asserts crash */