Need to hold nconf so *com does not die while being used.

This commit is contained in:
Adam Ierymenko 2015-10-01 13:43:15 -07:00
parent 6693149f3e
commit 3999e468b7

View File

@ -238,9 +238,9 @@ void Multicaster::send(
TRACE(">>MC upstream GATHER up to %u for group %.16llx/%s",gatherLimit,nwid,mg.toString().c_str());
const CertificateOfMembership *com = (CertificateOfMembership *)0;
SharedPtr<NetworkConfig> nconf;
if (sn->needsOurNetworkMembershipCertificate(nwid,now,true)) {
SharedPtr<Network> nw = RR->node->network(nwid);
SharedPtr<NetworkConfig> nconf;
if (nw) {
nconf = nw->config2();
if (nconf)