diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-03-13 15:54:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-03-25 16:35:34 -0400 |
commit | 2e7f80d5f4e8b56f060516f71f13590593b1d876 (patch) | |
tree | f15731af94c70cafd7511965ade6a1af44c693f1 /src/lib/pubsub | |
parent | c40bcab85df19feb4ad6503f160c07b23501dc85 (diff) | |
download | tor-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)
Diffstat (limited to 'src/lib/pubsub')
-rw-r--r-- | src/lib/pubsub/pubsub_check.c | 3 |
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]", |