mgmt refactoring: Correct ForwarderStatus publishing
Change-Id: I8207af814757b5f4ce3ea9b8bb66d7f5a369af2f
Refs: #2107
diff --git a/daemon/mgmt/forwarder-status-manager.cpp b/daemon/mgmt/forwarder-status-manager.cpp
index 9f1e3a2..bf2372b 100644
--- a/daemon/mgmt/forwarder-status-manager.cpp
+++ b/daemon/mgmt/forwarder-status-manager.cpp
@@ -59,7 +59,11 @@
m_forwarder.getCounters().copyTo(status);
context.setExpiry(STATUS_SERVER_DEFAULT_FRESHNESS);
- context.append(status.wireEncode());
+
+ status.wireEncode().parse();
+ for (const auto& subblock : status.wireEncode().elements()) {
+ context.append(subblock);
+ }
context.end();
}