aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/lib
diff options
context:
space:
mode:
authorFilip Varga <fivarga@cisco.com>2020-02-03 12:14:29 +0100
committerOle Trøan <otroan@employees.org>2020-02-04 13:36:57 +0000
commit9fbacbc56b9f075e9f5fc3f5df1c18043145562c (patch)
treef47e775384e0f8ff4d3cc13c7acb66f8af75389b /src/plugins/nat/lib
parent59b6c0c86d0c3310b8d87b9f2600b6fc7682b549 (diff)
nat: pool allocation function fix
Type: fix Change-Id: I75b20db66fb58e1724a212253c51315836079f4b Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/lib')
-rw-r--r--src/plugins/nat/lib/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/lib/alloc.c b/src/plugins/nat/lib/alloc.c
index 2c9841b7b63..33c2c071d62 100644
--- a/src/plugins/nat/lib/alloc.c
+++ b/src/plugins/nat/lib/alloc.c
@@ -36,7 +36,7 @@ nat_add_del_ip4_pool_addr (nat_ip4_pool_t * pool, ip4_address_t addr,
vlib_thread_main_t *tm = vlib_get_thread_main ();
// lookup for the address
- for (i = 0; i < vec_len (pool); i++)
+ for (i = 0; i < vec_len (pool->pool_addr); i++)
{
if (pool->pool_addr[i].addr.as_u32 == addr.as_u32)
{