aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-03-13 15:54:26 -0400
committerNick Mathewson <nickm@torproject.org>2019-03-25 16:35:34 -0400
commit2e7f80d5f4e8b56f060516f71f13590593b1d876 (patch)
treef15731af94c70cafd7511965ade6a1af44c693f1
parentc40bcab85df19feb4ad6503f160c07b23501dc85 (diff)
downloadtor-2e7f80d5f4e8b56f060516f71f13590593b1d876.tar.gz
tor-2e7f80d5f4e8b56f060516f71f13590593b1d876.zip
pubsub_check.c: Stop accepting NULL prefix, which we never send.
(Our code to handle it was broken, too)
-rw-r--r--src/lib/pubsub/pubsub_check.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/pubsub/pubsub_check.c b/src/lib/pubsub/pubsub_check.c
index 1b3853d8bb..e87c347c45 100644
--- a/src/lib/pubsub/pubsub_check.c
+++ b/src/lib/pubsub/pubsub_check.c
@@ -155,8 +155,7 @@ format_flags(unsigned flags)
static void
pubsub_cfg_dump(const pubsub_cfg_t *cfg, int severity, const char *prefix)
{
- if (!prefix)
- prefix = 0;
+ tor_assert(prefix);
tor_log(severity, LD_MESG,
"%s%s %s: %s{%s} on %s (%s) <%u %u %u %u %x> [%s:%d]",