Loading src/or/dirserv.c +2 −1 Original line number Diff line number Diff line Loading @@ -251,7 +251,7 @@ dirserv_add_descriptor(const char **desc) } (*desc_ent_ptr) = tor_malloc(sizeof(descriptor_entry_t)); (*desc_ent_ptr)->nickname = ri->nickname; (*desc_ent_ptr)->nickname = strdup(ri->nickname); (*desc_ent_ptr)->published = ri->published_on; (*desc_ent_ptr)->desc_len = desc_len; (*desc_ent_ptr)->descriptor = tor_malloc(desc_len+1); Loading Loading @@ -444,3 +444,4 @@ size_t dirserv_get_directory(const char **directory) *directory = the_directory; return the_directory_len; } src/or/routers.c +1 −1 Original line number Diff line number Diff line Loading @@ -771,7 +771,6 @@ routerinfo_t *router_get_entry_from_string(char**s) { directory_token_t _tok; directory_token_t *tok = &_tok; struct tm published; int t; #define NEXT_TOKEN() \ Loading Loading @@ -916,6 +915,7 @@ routerinfo_t *router_get_entry_from_string(char**s) { goto err; } router_release_token(tok); /* free the signature */ return router; err: Loading Loading
src/or/dirserv.c +2 −1 Original line number Diff line number Diff line Loading @@ -251,7 +251,7 @@ dirserv_add_descriptor(const char **desc) } (*desc_ent_ptr) = tor_malloc(sizeof(descriptor_entry_t)); (*desc_ent_ptr)->nickname = ri->nickname; (*desc_ent_ptr)->nickname = strdup(ri->nickname); (*desc_ent_ptr)->published = ri->published_on; (*desc_ent_ptr)->desc_len = desc_len; (*desc_ent_ptr)->descriptor = tor_malloc(desc_len+1); Loading Loading @@ -444,3 +444,4 @@ size_t dirserv_get_directory(const char **directory) *directory = the_directory; return the_directory_len; }
src/or/routers.c +1 −1 Original line number Diff line number Diff line Loading @@ -771,7 +771,6 @@ routerinfo_t *router_get_entry_from_string(char**s) { directory_token_t _tok; directory_token_t *tok = &_tok; struct tm published; int t; #define NEXT_TOKEN() \ Loading Loading @@ -916,6 +915,7 @@ routerinfo_t *router_get_entry_from_string(char**s) { goto err; } router_release_token(tok); /* free the signature */ return router; err: Loading