diff options
author | Ole Troan <ot@cisco.com> | 2021-05-06 13:39:55 +0200 |
---|---|---|
committer | Ole Troan <ot@cisco.com> | 2021-05-06 13:47:20 +0200 |
commit | ec34fb77231c9f601520d6a2eaa5aab8c54253a6 (patch) | |
tree | f4afa9689ff86a10cfe34ca9a80fdc8afa3c1a88 /src/plugins/nat/pnat/tests/pnat_test.c | |
parent | f09d655101d2400df91d2a388168b925eea0dc01 (diff) |
pnat: coverity errors
Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Ic38cfbdcab86172bad6ec6cb4c66c83f8deed64f
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins/nat/pnat/tests/pnat_test.c')
-rw-r--r-- | src/plugins/nat/pnat/tests/pnat_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/nat/pnat/tests/pnat_test.c b/src/plugins/nat/pnat/tests/pnat_test.c index fd91ab2f88a..e7d946941b9 100644 --- a/src/plugins/nat/pnat/tests/pnat_test.c +++ b/src/plugins/nat/pnat/tests/pnat_test.c @@ -347,6 +347,7 @@ extern vlib_node_registration_t pnat_input_node; static void test_table(test_t *t, int no_tests) { // walk through table of tests int i; + vlib_main_init(); vlib_main_t *vm = vlib_get_first_main(); /* Generate packet data */ @@ -559,6 +560,7 @@ int main(int argc, char **argv) { clib_mem_init(0, 3ULL << 30); + vlib_main_init(); vlib_main_t *vm = vlib_get_first_main(); buffers_vector = buffer_init(buffers_vector, 256); |