From 9cf8d5699d88d75b4fd93fc7d85de3c3444b3db8 Mon Sep 17 00:00:00 2001 From: Alfredo Cardigliano Date: Fri, 25 Oct 2024 17:56:14 +0200 Subject: [PATCH] Add check for null mac --- src/Flow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Flow.cpp b/src/Flow.cpp index db54d3d327bd..c66e8da470b8 100644 --- a/src/Flow.cpp +++ b/src/Flow.cpp @@ -304,7 +304,7 @@ void Flow::deferredInitialization() { Mac *srv_mac = srv_host->getMac(); /* Add client gateway */ - if (srv_mac && (!srv_host->isLocalHost())) { + if (srv_mac && !srv_mac->isNull() && !srv_host->isLocalHost()) { LocalHost *lh = (LocalHost *)cli_host; lh->setRouterMac(srv_mac); }