From 5be48c5d4c7339ab69b2becb6176c83d2f637f11 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 3 Feb 2015 15:50:31 -0500 Subject: Work around test_status.c weirdness Ordinarily, get_options() can never return NULL, but with test_status.c mocking, it can. So test for that case. The best fix here would be to pass the options value to a bridge_server_mode() function. --- src/or/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/status.c b/src/or/status.c index 98db688e5b..8057abef16 100644 --- a/src/or/status.c +++ b/src/or/status.c @@ -132,7 +132,7 @@ log_heartbeat(time_t now) circuit_log_ancient_one_hop_circuits(1800); - if (options->BridgeRelay) { + if (options && options->BridgeRelay) { char *msg = NULL; msg = format_client_stats_heartbeat(now); if (msg) -- cgit v1.2.3-54-g00ecf