diff options
author | Roger Dingledine <arma@torproject.org> | 2003-11-13 06:49:25 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-11-13 06:49:25 +0000 |
commit | 56cd147eb98e7db83937bf4b6dcf83be45790978 (patch) | |
tree | 809e14f851fd55be728e67115f950f6ed85bb0d6 /src/or/dirserv.c | |
parent | cc8ce64cb2940b9e740fa23579209adcb203905c (diff) | |
download | tor-56cd147eb98e7db83937bf4b6dcf83be45790978.tar.gz tor-56cd147eb98e7db83937bf4b6dcf83be45790978.zip |
let getconfig survive repeated calls. now we call it again when we hup.
change RecommendedVersions into a config option, so dirservers can hup
for a new one
svn:r809
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 2883de492a..74fef0d64d 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -273,7 +273,7 @@ dirserv_add_descriptor(const char **desc) } (*desc_ent_ptr) = tor_malloc(sizeof(descriptor_entry_t)); - (*desc_ent_ptr)->nickname = strdup(ri->nickname); + (*desc_ent_ptr)->nickname = tor_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); @@ -373,8 +373,8 @@ dirserv_dump_directory_to_string(char *s, int maxlen, snprintf(s, maxlen, "signed-directory\n" "published %s\n" - "recommended-software "RECOMMENDED_SOFTWARE_VERSIONS"\n" - "running-routers %s\n\n", published, cp); + "recommended-software %s\n" + "running-routers %s\n\n", published, options.RecommendedVersions, cp); free(cp); i = strlen(s); cp = s+i; |