From 468d9222802955ad65e0e3b49d240e9581e75351 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 30 Jul 2007 01:07:06 +0000 Subject: start hunting bugs, first in a non-crashy manner svn:r10978 --- src/or/config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/or/config.c') diff --git a/src/or/config.c b/src/or/config.c index 4663e5b3d..0f6f8e0c9 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -756,6 +756,10 @@ config_free_all(void) const char * safe_str(const char *address) { + if (!address) { /* XXX020 eventually turn this into an assert */ + log_warn(LD_BUG, "safe_str() called with NULL address."); + return "EMPTY"; + } if (get_options()->SafeLogging) return "[scrubbed]"; else -- cgit v1.2.3