[or-cvs] r8767: i saw somebody on #tor paste a string where these were null. (tor/trunk/src/common)

arma at seul.org arma at seul.org
Fri Oct 20 00:12:02 UTC 2006


Author: arma
Date: 2006-10-19 20:12:02 -0400 (Thu, 19 Oct 2006)
New Revision: 8767

Modified:
   tor/trunk/src/common/crypto.c
Log:
i saw somebody on #tor paste a string where these were
null. better safe than sorry.


Modified: tor/trunk/src/common/crypto.c
===================================================================
--- tor/trunk/src/common/crypto.c	2006-10-19 23:28:38 UTC (rev 8766)
+++ tor/trunk/src/common/crypto.c	2006-10-20 00:12:02 UTC (rev 8767)
@@ -156,6 +156,8 @@
     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);



More information about the tor-commits mailing list