summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-01-04 01:11:44 -0800
committerNeale Ranns <nranns@cisco.com>2018-01-04 11:56:46 +0000
commit1f720c3b1958ac785671a5d7f69841c91d9abf96 (patch)
treedb97010427df5c4fa26d5c5e34f1cc49387bdcd5
parent8c2bacde4fbfb69e426c77f1a9f9af7669fadbdf (diff)
VOM: NAT coverity found bugs
Change-Id: Ic55ad2e0a1435f552ce84ed1a9b1981191bc178b Signed-off-by: Neale Ranns <nranns@cisco.com> (cherry picked from commit 842eb22e5d5a7e11114fe093eeccafb080e9aa8b)
-rw-r--r--src/vpp-api/vom/nat_binding.cpp2
-rw-r--r--src/vpp-api/vom/nat_static.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/vpp-api/vom/nat_binding.cpp b/src/vpp-api/vom/nat_binding.cpp
index a2e71b3a085..a3f71117eef 100644
--- a/src/vpp-api/vom/nat_binding.cpp
+++ b/src/vpp-api/vom/nat_binding.cpp
@@ -119,7 +119,7 @@ nat_binding::update(const nat_binding& desired)
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 4c2dab15325..3b0d2d06ccc 100644
--- a/src/vpp-api/vom/nat_static.hpp
+++ b/src/vpp-api/vom/nat_static.hpp
@@ -168,12 +168,12 @@ private:
/**
* 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