[tor-commits] [tor/master] pubsub_check.c: Stop accepting NULL prefix, which we never send.

asn at torproject.org asn at torproject.org
Wed Mar 27 12:31:31 UTC 2019


commit 2e7f80d5f4e8b56f060516f71f13590593b1d876
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Mar 13 15:54:26 2019 -0400

    pubsub_check.c: Stop accepting NULL prefix, which we never send.
    
    (Our code to handle it was broken, too)
---
 src/lib/pubsub/pubsub_check.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/pubsub/pubsub_check.c b/src/lib/pubsub/pubsub_check.c
index 1b3853d8b..e87c347c4 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]",





More information about the tor-commits mailing list