Skip to content
Snippets Groups Projects
Commit dcd33ef5 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

i saw somebody on #tor paste a string where these were

null. better safe than sorry.


svn:r8767
parent 7f8d9e8a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment