This commit is contained in:
Jeff 2018-02-26 16:29:01 +00:00 committed by GitHub
commit da12d24079
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -672,7 +672,7 @@ namespace tunnel
{
auto pool = tunnel->GetTunnelPool ();
// let it die if the tunnel pool has been reconfigured and this is old
if (pool && tunnel->GetTunnelConfig()->GetNumHops() == pool->GetNumOutboundHops())
if (pool && tunnel->GetTunnelConfig() && tunnel->GetTunnelConfig()->GetNumHops() == pool->GetNumOutboundHops())
{
tunnel->SetIsRecreated ();
pool->RecreateOutboundTunnel (tunnel);
@ -726,7 +726,7 @@ namespace tunnel
{
auto pool = tunnel->GetTunnelPool ();
// let it die if the tunnel pool was reconfigured and has different number of hops
if (pool && tunnel->GetTunnelConfig()->GetNumHops() == pool->GetNumInboundHops())
if (pool && tunnel->GetTunnelConfig() && tunnel->GetTunnelConfig()->GetNumHops() == pool->GetNumInboundHops())
{
tunnel->SetIsRecreated ();
pool->RecreateInboundTunnel (tunnel);