Update tids->hostname after configuration reload
authorJennifer Richards <jennifer@painless-security.com>
Fri, 20 Apr 2018 15:07:10 +0000 (11:07 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Fri, 20 Apr 2018 15:07:10 +0000 (11:07 -0400)
This was also done in 3b59db3c5565b707e745d58f7ec1df1bdc7c1895.

Fixes https://bugs.launchpad.net/moonshot-tr/+bug/1765633

tr/tr_trp.c

index 298299e..7ff80fc 100644 (file)
@@ -870,6 +870,9 @@ void tr_config_changed(TR_CFG *new_cfg, void *cookie)
   tr->cfgwatch->settling_time.tv_sec=new_cfg->internal->cfg_settling_time;
   tr->cfgwatch->settling_time.tv_usec=0;
 
+  /* This needs to be updated */
+  tr->tids->hostname = new_cfg->internal->hostname;
+
   trps_set_connect_interval(trps, new_cfg->internal->trp_connect_interval);
   trps_set_update_interval(trps, new_cfg->internal->trp_update_interval);
   trps_set_sweep_interval(trps, new_cfg->internal->trp_sweep_interval);