[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Fix an off-by-one buffer size in dirserv.c that magically n...
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv5682/src/or
Modified Files:
dirserv.c
Log Message:
Fix an off-by-one buffer size in dirserv.c that magically never hit our
three authorities but broke sjmurdoch's own tor network.
Index: dirserv.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.304
retrieving revision 1.305
diff -u -p -d -r1.304 -r1.305
--- dirserv.c 12 Mar 2006 22:48:17 -0000 1.304
+++ dirserv.c 14 Mar 2006 22:43:52 -0000 1.305
@@ -1311,7 +1311,7 @@ generate_v2_networkstatus(void)
or_options_t *options = get_options();
char fingerprint[FINGERPRINT_LEN+1];
char ipaddr[INET_NTOA_BUF_LEN+1];
- char published[ISO_TIME_LEN];
+ char published[ISO_TIME_LEN+1];
char digest[DIGEST_LEN];
struct in_addr in;
uint32_t addr;