[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] make the patch less likely to bite us later



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	connection_edge.c dirserv.c 
Log Message:
make the patch less likely to bite us later


Index: connection_edge.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection_edge.c,v
retrieving revision 1.346
retrieving revision 1.347
diff -u -d -r1.346 -r1.347
--- connection_edge.c	12 Sep 2005 20:57:16 -0000	1.346
+++ connection_edge.c	12 Sep 2005 21:42:59 -0000	1.347
@@ -173,7 +173,7 @@
 int
 connection_edge_end(connection_t *conn, char reason, crypt_path_t *cpath_layer)
 {
-  char payload[9];
+  char payload[RELAY_PAYLOAD_SIZE];
   size_t payload_len=1;
   circuit_t *circ;
 

Index: dirserv.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.224
retrieving revision 1.225
diff -u -d -r1.224 -r1.225
--- dirserv.c	12 Sep 2005 08:49:21 -0000	1.224
+++ dirserv.c	12 Sep 2005 21:42:59 -0000	1.225
@@ -570,7 +570,7 @@
     return -1;
   if (ca && !cb)
     return 1;
-  /* If neiher parses, compare strings.  Also, the directory server admin needs
+  /* If neither parses, compare strings.  Also, the directory server admin needs
   ** to be smacked upside the head.  But Tor is tolerant and gentle. */
   return strcmp(a,b);
 }