mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
wrap strdup; prefer time() to gettimeofday()
svn:r538
This commit is contained in:
+1
-1
@@ -184,7 +184,7 @@ static int spawn_cpuworker(void) {
|
||||
|
||||
/* set up conn so it's got all the data we need to remember */
|
||||
conn->s = fd[0];
|
||||
conn->address = strdup("localhost");
|
||||
conn->address = tor_strdup("localhost");
|
||||
|
||||
if(connection_add(conn) < 0) { /* no space, forget it */
|
||||
log_fn(LOG_WARNING,"connection_add failed. Giving up.");
|
||||
|
||||
Reference in New Issue
Block a user