mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Treat absent argument to crypto_log_errors as a bug.
This commit is contained in:
parent
d88656ec06
commit
98a590577a
@ -171,13 +171,9 @@ crypto_log_errors(int severity, const char *doing)
|
||||
if (!msg) msg = "(null)";
|
||||
if (!lib) lib = "(null)";
|
||||
if (!func) func = "(null)";
|
||||
if (doing) {
|
||||
if (BUG(!doing)) doing = "(null)";
|
||||
tor_log(severity, LD_CRYPTO, "crypto error while %s: %s (in %s:%s)",
|
||||
doing, msg, lib, func);
|
||||
} else {
|
||||
tor_log(severity, LD_CRYPTO, "crypto error: %s (in %s:%s)",
|
||||
msg, lib, func);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user