aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-07-30 01:07:06 +0000
committerRoger Dingledine <arma@torproject.org>2007-07-30 01:07:06 +0000
commit468d9222802955ad65e0e3b49d240e9581e75351 (patch)
treedd50299b492f5dc61ce1bb037059fe02e7be6a92 /src
parent3dbc825f3672bac701659c47be5493d5338ae61e (diff)
downloadtor-468d9222802955ad65e0e3b49d240e9581e75351.tar
tor-468d9222802955ad65e0e3b49d240e9581e75351.tar.gz
start hunting bugs, first in a non-crashy manner
svn:r10978
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c4
1 files changed, 4 insertions, 0 deletions
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