[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] pubsub_check.c: Stop accepting NULL prefix, which we never send.
commit 2e7f80d5f4e8b56f060516f71f13590593b1d876
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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]",
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits