diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-03-09 22:01:17 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-03-09 22:01:17 +0000 |
commit | 2da54de9682716729154872ffc7946fbca1d6391 (patch) | |
tree | 8630c271e2420ebf15eb3e2b9dc81c080adef846 /src/common/tortls.c | |
parent | 30969421d3f6389fa985ae997c3a0969b3bfaf29 (diff) | |
download | tor-2da54de9682716729154872ffc7946fbca1d6391.tar.gz tor-2da54de9682716729154872ffc7946fbca1d6391.zip |
Make tor build on windows again. More work still needed
svn:r1247
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r-- | src/common/tortls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index 860fb10438..1531ea211e 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -493,7 +493,7 @@ tor_tls_get_peer_cert_nickname(tor_tls *tls, char *buf, int buflen) lenout = X509_NAME_get_text_by_NID(name, nid, buf, buflen); if (lenout == -1) goto error; - if (strspn(buf, LEGAL_NICKNAME_CHARACTERS) != lenout) { + if (((int)strspn(buf, LEGAL_NICKNAME_CHARACTERS)) < lenout) { log_fn(LOG_WARN, "Peer certificate nickname has illegal characters."); goto error; } |