mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
i saw somebody on #tor paste a string where these were
null. better safe than sorry. svn:r8767
This commit is contained in:
parent
7f8d9e8af2
commit
dcd33ef599
1 changed files with 2 additions and 0 deletions
|
@ -156,6 +156,8 @@ crypto_log_errors(int severity, const char *doing)
|
||||||
lib = (const char*)ERR_lib_error_string(err);
|
lib = (const char*)ERR_lib_error_string(err);
|
||||||
func = (const char*)ERR_func_error_string(err);
|
func = (const char*)ERR_func_error_string(err);
|
||||||
if (!msg) msg = "(null)";
|
if (!msg) msg = "(null)";
|
||||||
|
if (!lib) lib = "(null)";
|
||||||
|
if (!func) func = "(null)";
|
||||||
if (doing) {
|
if (doing) {
|
||||||
log(severity, LD_CRYPTO, "crypto error while %s: %s (in %s:%s)",
|
log(severity, LD_CRYPTO, "crypto error while %s: %s (in %s:%s)",
|
||||||
doing, msg, lib, func);
|
doing, msg, lib, func);
|
||||||
|
|
Loading…
Add table
Reference in a new issue