aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Solignac <gsoligna@cisco.com>2022-04-14 11:27:37 +0200
committerDamjan Marion <dmarion@0xa5.net>2024-05-13 14:57:50 +0000
commit9d5fed08aed0567db210b394773051dc1dc8defa (patch)
treee91f71b5734be80ce106fe0da74c9be090240b31 /src
parentb448568fad702ae94380e3d563156bd69c6fc60a (diff)
nat: fix unitialized variable
Fixes an unitialized variable. Type: fix Change-Id: I636dc8433679606262d9a974c01f81d8721634f2 Signed-off-by: Pierre Pfister <ppfister@cisco.com> Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Signed-off-by: Guillaume Solignac <gsoligna@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/nat/nat44-ei/nat44_ei_in2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat44-ei/nat44_ei_in2out.c b/src/plugins/nat/nat44-ei/nat44_ei_in2out.c
index 01b333a5234..3b981d69986 100644
--- a/src/plugins/nat/nat44-ei/nat44_ei_in2out.c
+++ b/src/plugins/nat/nat44-ei/nat44_ei_in2out.c
@@ -859,7 +859,7 @@ nat44_ei_icmp_in2out (vlib_buffer_t *b0, ip4_header_t *ip0,
nat44_ei_main_t *nm = &nat44_ei_main;
vlib_main_t *vm = vlib_get_main ();
ip4_address_t addr;
- u16 port;
+ u16 port = 0;
u32 fib_index;
nat_protocol_t proto;
icmp_echo_header_t *echo0, *inner_echo0 = 0;