From 9416d29322ca8dafeb7757e277ba01ac8b4463a0 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 26 Feb 2018 09:53:12 -0500 Subject: [PATCH] check for tunnel config --- libi2pd/Tunnel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libi2pd/Tunnel.cpp b/libi2pd/Tunnel.cpp index 73abc1a7..25496201 100644 --- a/libi2pd/Tunnel.cpp +++ b/libi2pd/Tunnel.cpp @@ -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);