VOM: NAT coverity found bugs
Change-Id: Ic55ad2e0a1435f552ce84ed1a9b1981191bc178b
Signed-off-by: Neale Ranns <nranns@cisco.com>
diff --git a/src/vpp-api/vom/nat_binding.cpp b/src/vpp-api/vom/nat_binding.cpp
index a2e71b3..a3f7111 100644
--- a/src/vpp-api/vom/nat_binding.cpp
+++ b/src/vpp-api/vom/nat_binding.cpp
@@ -119,7 +119,7 @@
HW::enqueue(new nat_binding_cmds::bind_44_input_cmd(
m_binding, m_itf->handle(), m_zone));
} else {
- HW::enqueue(new nat_binding_cmds::bind_44_input_cmd(
+ HW::enqueue(new nat_binding_cmds::bind_44_output_cmd(
m_binding, m_itf->handle(), m_zone));
}
}
diff --git a/src/vpp-api/vom/nat_static.hpp b/src/vpp-api/vom/nat_static.hpp
index 4c2dab1..3b0d2d0 100644
--- a/src/vpp-api/vom/nat_static.hpp
+++ b/src/vpp-api/vom/nat_static.hpp
@@ -168,12 +168,12 @@
/**
* The 'inside' IP address, could be v4 or v6
*/
- const boost::asio::ip::address& m_inside;
+ const boost::asio::ip::address m_inside;
/**
* The 'outside' IP address - always v4
*/
- const boost::asio::ip::address_v4& m_outside;
+ const boost::asio::ip::address_v4 m_outside;
/**
* A map of all NAT statics