nat: pool allocation function fix
Type: fix
Change-Id: I75b20db66fb58e1724a212253c51315836079f4b
Signed-off-by: Filip Varga <fivarga@cisco.com>
diff --git a/src/plugins/nat/lib/alloc.c b/src/plugins/nat/lib/alloc.c
index 2c9841b..33c2c07 100644
--- a/src/plugins/nat/lib/alloc.c
+++ b/src/plugins/nat/lib/alloc.c
@@ -36,7 +36,7 @@
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)
{