aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-08-26 18:40:44 +0000
committerRoger Dingledine <arma@torproject.org>2005-08-26 18:40:44 +0000
commitfa507c63e8841c912b0b54178198ed6ee9b976de (patch)
tree4af1b2c5b7d58c7e9336477bdf49b5051dc3b7a0 /src/common/tortls.c
parentff25a7707aa64a6d9c914535297bfbce24b7dffa (diff)
downloadtor-fa507c63e8841c912b0b54178198ed6ee9b976de.tar
tor-fa507c63e8841c912b0b54178198ed6ee9b976de.tar.gz
put quotes around user-supplied strings so they are more likely to
realize if they add bad characters (like quotes) to the torrc svn:r4844
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 6f6f17826..f88c99d6d 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -652,7 +652,7 @@ 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 '%s' has illegal characters.",
+ log_fn(LOG_WARN, "Peer certificate nickname \"%s\" has illegal characters.",
buf);
if (strchr(buf, '.'))
log_fn(LOG_WARN, " (Maybe it is not really running Tor at its advertised OR port.)");