[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Backport minimal fix for task #42.
Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv20393/src/or
Modified Files:
Tag: tor-0_0_9-patches
connection_or.c
Log Message:
Backport minimal fix for task #42.
Index: connection_or.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/connection_or.c,v
retrieving revision 1.150.2.1
retrieving revision 1.150.2.2
diff -u -d -r1.150.2.1 -r1.150.2.2
--- connection_or.c 3 Jan 2005 17:11:15 -0000 1.150.2.1
+++ connection_or.c 3 Jan 2005 17:54:29 -0000 1.150.2.2
@@ -354,7 +354,7 @@
}
}
/* Okay; the other side is an OR or a post-0.0.8 OP (with a cert). */
- if (tor_tls_get_peer_cert_nickname(conn->tls, nickname, MAX_NICKNAME_LEN)) {
+ if (tor_tls_get_peer_cert_nickname(conn->tls, nickname, sizeof(nickname))) {
log_fn(LOG_WARN,"Other side (%s:%d) has a cert without a valid nickname. Closing.",
conn->address, conn->port);
return -1;