util: Extend DummyClientFace to process LocalControlHeader
Change-Id: I5ab397ae585fcdc2a5e231e8ad9a819bccfb3baa
Refs: #2510
diff --git a/src/face.cpp b/src/face.cpp
index 57f9605..744ee0d 100644
--- a/src/face.cpp
+++ b/src/face.cpp
@@ -483,8 +483,7 @@
if (block.type() == tlv::Interest)
{
- shared_ptr<Interest> interest = make_shared<Interest>();
- interest->wireDecode(block);
+ shared_ptr<Interest> interest = make_shared<Interest>(block);
if (&block != &blockFromDaemon)
interest->getLocalControlHeader().wireDecode(blockFromDaemon);
@@ -492,8 +491,7 @@
}
else if (block.type() == tlv::Data)
{
- shared_ptr<Data> data = make_shared<Data>();
- data->wireDecode(block);
+ shared_ptr<Data> data = make_shared<Data>(block);
if (&block != &blockFromDaemon)
data->getLocalControlHeader().wireDecode(blockFromDaemon);