mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
fix two more bugs
svn:r452
This commit is contained in:
+2
-1
@@ -553,8 +553,9 @@ static void catch(int the_signal) {
|
||||
break;
|
||||
case SIGCHLD:
|
||||
please_reap_children = 1;
|
||||
break;
|
||||
default:
|
||||
log(LOG_ERR,"Caught signal that we can't handle??");
|
||||
log(LOG_ERR,"Caught signal %d that we can't handle??", the_signal);
|
||||
}
|
||||
#endif /* signal stuff */
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "orconfig.h"
|
||||
|
||||
//#define USE_TLS
|
||||
#define USE_TLS
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -188,7 +188,8 @@ void directory_free(directory_t *directory)
|
||||
for (i = 0; i < directory->n_routers; ++i)
|
||||
routerinfo_free(directory->routers[i]);
|
||||
free(directory->routers);
|
||||
/* XXX are we leaking directory->software_versions here? */
|
||||
if(directory->software_versions)
|
||||
free(directory->software_versions);
|
||||
free(directory);
|
||||
}
|
||||
|
||||
@@ -697,6 +698,7 @@ static int router_get_list_from_string_tok(char **s, directory_t **dest,
|
||||
*dest = (directory_t *)tor_malloc(sizeof(directory_t));
|
||||
(*dest)->routers = rarray;
|
||||
(*dest)->n_routers = rarray_len;
|
||||
(*dest)->software_versions = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user