X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fnetconfig.c;fp=citadel%2Fnetconfig.c;h=9e3fdc9cb84265f29908c3b072811c4246181d93;hp=f09c852fd32a3786ac5cc1f15c35c4e6fcbde087;hb=a0e8fbd602e58d7f0e911d9f9c60dd1057a31012;hpb=1f515ca535f1e25cd0e95aa275796d0915505c75 diff --git a/citadel/netconfig.c b/citadel/netconfig.c index f09c852fd..9e3fdc9cb 100644 --- a/citadel/netconfig.c +++ b/citadel/netconfig.c @@ -1172,9 +1172,12 @@ int CtdlIsValidNode(const StrBuf **nexthop, void destroy_network_cfgs(void) { HashList *pCfgTypeHash = CfgTypeHash; - HashList *pRoomConfigs = RoomConfigs; + HashList *pRoomConfigs; + begin_critical_section(S_NETCONFIGS); + pRoomConfigs = RoomConfigs; RoomConfigs = NULL; + end_critical_section(S_NETCONFIGS); DeleteHash(&pRoomConfigs); CfgTypeHash = NULL;