aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-06-04 12:41:43 +0000
committerOle Trøan <otroan@employees.org>2020-06-04 14:01:06 +0000
commitc39c79c5aa7b5410f3aad4a770a741ab04f7dcc5 (patch)
tree8bf42bb08e64aa14a3123fd80efdd1349edd0bb1 /src
parent0b3648fd1f37acc59c7761b0d2190691dd6a605c (diff)
nat: fix coverity warning
Type: fix Change-Id: I0e87021b11009a955f5839bdb68af897145816c1 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/nat/nat44_hairpinning.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat44_hairpinning.c b/src/plugins/nat/nat44_hairpinning.c
index 21e2eee188b..1c91bd77e04 100644
--- a/src/plugins/nat/nat44_hairpinning.c
+++ b/src/plugins/nat/nat44_hairpinning.c
@@ -122,7 +122,7 @@ snat_hairpinning (vlib_main_t * vm, vlib_node_runtime_t * node,
int is_ed, int do_trace)
{
snat_session_key_t key0, sm0;
- snat_session_t *s0;
+ snat_session_t *s0 = NULL;
clib_bihash_kv_8_8_t kv0, value0;
ip_csum_t sum0;
u32 new_dst_addr0 = 0, old_dst_addr0, ti = 0, si = ~0;