mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +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. */
|
/* Write out a fresh descriptor, but leave old one on failure. */
|
||||||
router_rebuild_descriptor(1);
|
router_rebuild_descriptor(1);
|
||||||
descriptor = router_get_my_descriptor();
|
descriptor = router_get_my_descriptor();
|
||||||
if (!descriptor) {
|
if (descriptor) {
|
||||||
log_fn(LOG_WARN,"No descriptor to save.");
|
tor_snprintf(keydir,sizeof(keydir),"%s/router.desc",
|
||||||
return 0;
|
options->DataDirectory);
|
||||||
}
|
log_fn(LOG_INFO,"Saving descriptor to \"%s\"...",keydir);
|
||||||
tor_snprintf(keydir,sizeof(keydir),"%s/router.desc",
|
if (write_str_to_file(keydir, descriptor, 0)) {
|
||||||
options->DataDirectory);
|
return 0;
|
||||||
log_fn(LOG_INFO,"Saving descriptor to \"%s\"...",keydir);
|
}
|
||||||
if (write_str_to_file(keydir, descriptor, 0)) {
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user