[or-cvs] Set chosen_exit_name to something we are not about to zero.

Nick Mathewson nickm at seul.org
Mon Dec 5 06:16:26 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv3217/src/or

Modified Files:
	connection_edge.c 
Log Message:
Set chosen_exit_name to something we are not about to zero.

Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/connection_edge.c,v
retrieving revision 1.368
retrieving revision 1.369
diff -u -d -r1.368 -r1.369
--- connection_edge.c	5 Dec 2005 04:38:21 -0000	1.368
+++ connection_edge.c	5 Dec 2005 06:16:24 -0000	1.369
@@ -1002,7 +1002,7 @@
       }
     } else {
       struct in_addr in;
-      conn->chosen_exit_name = socks->address;
+      conn->chosen_exit_name = tor_strdup(socks->address);
       *socks->address = 0;
       routerinfo_t *r = router_get_by_nickname(conn->chosen_exit_name, 1);
       if (r) {



More information about the tor-commits mailing list