]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed message packing error handling in mgr and snmp SMP Forwarders.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 23 Jun 2017 22:15:30 +0000 (16:15 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 23 Jun 2017 22:15:30 +0000 (16:15 -0600)
A missing "return" resulted in Forwarders sending garbage (or worse) to
Coordinator.

src/ipc/Forwarder.cc

index 13e051fff3db816d3bb278e89508c31233bc683b..58a72915fa37f7483098b9a66fdf5bd004bb8107 100644 (file)
@@ -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);