Initialize consdiffmgr when running as (or becoming) a server.

This commit is contained in:
Nick Mathewson
2017-04-25 19:53:00 -04:00
parent 24f7059704
commit fba8d7b222
2 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -622,7 +622,8 @@ consdiffmgr_cleanup(void)
void
consdiffmgr_configure(const consdiff_cfg_t *cfg)
{
memcpy(&consdiff_cfg, cfg, sizeof(consdiff_cfg));
if (cfg)
memcpy(&consdiff_cfg, cfg, sizeof(consdiff_cfg));
(void) cdm_cache_get();
}