summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-06-04 12:41:43 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-18 19:47:21 +0000
commit77335de45a0904fd6d6e2a5597f1fd0fcbaf0917 (patch)
treee24ce24e66eaa2b2909e76c0f26fa13b54591022
parenta4a794d152d31d2c81528951052c3068d68108f5 (diff)
nat: fix coverity warning
Type: fix Change-Id: I0e87021b11009a955f5839bdb68af897145816c1 Signed-off-by: Klement Sekera <ksekera@cisco.com> (cherry picked from commit c39c79c5aa7b5410f3aad4a770a741ab04f7dcc5)
-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 331e7ca96bd..a0a06c04c05 100644
--- a/src/plugins/nat/nat44_hairpinning.c
+++ b/src/plugins/nat/nat44_hairpinning.c
@@ -94,7 +94,7 @@ snat_hairpinning (snat_main_t * sm,
tcp_header_t * tcp0, u32 proto0, int is_ed)
{
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;