summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-30 08:24:14 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-30 08:24:14 -0400
commit811ed8cf9f58d8480244483f4ad012ea9dca42ef (patch)
tree5b65e98f78f7b7667f97e719f803e56c0bda6b73 /src
parent5823e62fa2a83fb1f7a27c82be930749e3a4782d (diff)
parentffdfd39d4fc693795f1e3fd222b676fe053681be (diff)
downloadtor-811ed8cf9f58d8480244483f4ad012ea9dca42ef.tar.gz
tor-811ed8cf9f58d8480244483f4ad012ea9dca42ef.zip
Merge remote-tracking branch 'rl1987/bug26892_take2'
Diffstat (limited to 'src')
-rw-r--r--src/feature/relay/router.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c
index 973d3e1100..0cc4887232 100644
--- a/src/feature/relay/router.c
+++ b/src/feature/relay/router.c
@@ -2686,6 +2686,9 @@ log_addr_has_changed(int severity,
char addrbuf_prev[TOR_ADDR_BUF_LEN];
char addrbuf_cur[TOR_ADDR_BUF_LEN];
+ if (BUG(!server_mode(get_options())))
+ return;
+
if (tor_addr_to_str(addrbuf_prev, prev, sizeof(addrbuf_prev), 1) == NULL)
strlcpy(addrbuf_prev, "???", TOR_ADDR_BUF_LEN);
if (tor_addr_to_str(addrbuf_cur, cur, sizeof(addrbuf_cur), 1) == NULL)