summaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-10-20 00:12:02 +0000
committerRoger Dingledine <arma@torproject.org>2006-10-20 00:12:02 +0000
commitdcd33ef599c67991e85b51591b89c5b8e4e6dbf0 (patch)
tree944957d6fc4f5faefe7afbf101717f22f6396cab /src/common/crypto.c
parent7f8d9e8af2ccc9ad18b113618bbe7e055814c76f (diff)
downloadtor-dcd33ef599c67991e85b51591b89c5b8e4e6dbf0.tar.gz
tor-dcd33ef599c67991e85b51591b89c5b8e4e6dbf0.zip
i saw somebody on #tor paste a string where these were
null. better safe than sorry. svn:r8767
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c2
1 files changed, 2 insertions, 0 deletions
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);