aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 9f7bf326d..94c13fdfa 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -625,7 +625,8 @@ tor_tls_get_peer_cert_nickname(tor_tls *tls, char *buf, size_t buflen)
if (lenout == -1)
goto error;
if (((int)strspn(buf, LEGAL_NICKNAME_CHARACTERS)) < lenout) {
- log_fn(LOG_WARN, "Peer certificate nickname has illegal characters.");
+ log_fn(LOG_WARN, "Peer certificate nickname '%s' has illegal characters.",
+ buf);
goto error;
}
X509_free(cert);