summaryrefslogtreecommitdiffstats
path: root/src/plugins/cnat/cnat_translation.h
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2020-10-23 17:03:14 +0200
committerDamjan Marion <dmarion@me.com>2020-10-24 09:12:51 +0000
commitac948ce17fb3207d7f45578ec016089cb6860340 (patch)
tree77b63d68bf012104388713f0f93421b66e977bb3 /src/plugins/cnat/cnat_translation.h
parentfa4d4c635b82e31ecf7a52b8c794714f47b298cd (diff)
cnat: coverity fix
Type: fix Change-Id: Ie1153a0e0f1e9770bf3e0de9291131db91724b2e Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins/cnat/cnat_translation.h')
-rw-r--r--src/plugins/cnat/cnat_translation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cnat/cnat_translation.h b/src/plugins/cnat/cnat_translation.h
index a4ae1ece718..7a035814544 100644
--- a/src/plugins/cnat/cnat_translation.h
+++ b/src/plugins/cnat/cnat_translation.h
@@ -222,7 +222,7 @@ cnat_find_translation (index_t cti, u16 port, ip_protocol_t proto)
u64 key;
int rv;
- key = (proto << 24) | port;
+ key = ((u64) proto << 24) | port;
key = key << 32 | (u32) cti;
bkey.key = key;