From dcd33ef599c67991e85b51591b89c5b8e4e6dbf0 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 20 Oct 2006 00:12:02 +0000 Subject: i saw somebody on #tor paste a string where these were null. better safe than sorry. svn:r8767 --- src/common/crypto.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/crypto.c') diff --git a/src/common/crypto.c b/src/common/crypto.c index c7e5d4587f..0cc393be3e 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -156,6 +156,8 @@ crypto_log_errors(int severity, const char *doing) lib = (const char*)ERR_lib_error_string(err); func = (const char*)ERR_func_error_string(err); if (!msg) msg = "(null)"; + if (!lib) lib = "(null)"; + if (!func) func = "(null)"; if (doing) { log(severity, LD_CRYPTO, "crypto error while %s: %s (in %s:%s)", doing, msg, lib, func); -- cgit v1.2.3-54-g00ecf