From 42151e910f3af16391dabb49a633ccab05ef5029 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Sat, 1 Jul 2017 20:11:16 +1200 Subject: [PATCH] Fix message packing error handling in mgr and snmp SMP Forwarders. A missing "return" resulted in Forwarders sending garbage (or worse) to Coordinator. --- src/ipc/Forwarder.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ipc/Forwarder.cc b/src/ipc/Forwarder.cc index 13e051fff3..58a72915fa 100644 --- a/src/ipc/Forwarder.cc +++ b/src/ipc/Forwarder.cc @@ -62,6 +62,7 @@ Ipc::Forwarder::start() // assume the pack() call failed because the message did not fit // TODO: add a more specific exception? handleError(); + return; } SendMessage(Ipc::Port::CoordinatorAddr(), message); -- 2.47.2