aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-02-04 12:37:00 -0500
committerNick Mathewson <nickm@torproject.org>2016-02-04 12:37:00 -0500
commitc595f6d25e9cda58f5327c5806e2c9a534c454f9 (patch)
tree51bbe287a352c4849acd2e5bffa8f6ca07348f90 /src/common/compat_libevent.c
parent5da517e6897c4b997bb165dfd11e95f8f9c2bbbe (diff)
downloadtor-c595f6d25e9cda58f5327c5806e2c9a534c454f9.tar.gz
tor-c595f6d25e9cda58f5327c5806e2c9a534c454f9.zip
Add an assertion to tor_libevent_get_base()
Closes ticket 18241.
Diffstat (limited to 'src/common/compat_libevent.c')
-rw-r--r--src/common/compat_libevent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index 29e5c5f63c..c367ee4edb 100644
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -247,6 +247,7 @@ tor_libevent_initialize(tor_libevent_cfg *torcfg)
MOCK_IMPL(struct event_base *,
tor_libevent_get_base, (void))
{
+ tor_assert(the_event_base != NULL);
return the_event_base;
}