mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
cut out a warning that doesn't need to warn
svn:r5252
This commit is contained in:
parent
2a82182243
commit
aca6fb5f5f
@ -983,15 +983,13 @@ do_hup(void)
|
||||
/* Write out a fresh descriptor, but leave old one on failure. */
|
||||
router_rebuild_descriptor(1);
|
||||
descriptor = router_get_my_descriptor();
|
||||
if (!descriptor) {
|
||||
log_fn(LOG_WARN,"No descriptor to save.");
|
||||
return 0;
|
||||
}
|
||||
tor_snprintf(keydir,sizeof(keydir),"%s/router.desc",
|
||||
options->DataDirectory);
|
||||
log_fn(LOG_INFO,"Saving descriptor to \"%s\"...",keydir);
|
||||
if (write_str_to_file(keydir, descriptor, 0)) {
|
||||
return 0;
|
||||
if (descriptor) {
|
||||
tor_snprintf(keydir,sizeof(keydir),"%s/router.desc",
|
||||
options->DataDirectory);
|
||||
log_fn(LOG_INFO,"Saving descriptor to \"%s\"...",keydir);
|
||||
if (write_str_to_file(keydir, descriptor, 0)) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user