aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuraj Sloboda <jsloboda@cisco.com>2018-01-08 19:54:36 +0100
committerJuraj Sloboda <jsloboda@cisco.com>2018-01-08 19:55:26 +0100
commit07a45bd897c19520c6c8651f9a1b66809981c80e (patch)
treed646276a3cf6bca1e297f00e390d3fa747184a67
parenta431ad1c486ad0fd9ca35e14c527fe7611965fc2 (diff)
Fix missing dereference
Change-Id: I123259c131f1bd16c70990bf7f48d9a275c53ce2 Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
-rw-r--r--src/vnet/ip/ip4_to_ip6.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ip/ip4_to_ip6.h b/src/vnet/ip/ip4_to_ip6.h
index f2ed13dc381..9fedcc6fa35 100644
--- a/src/vnet/ip/ip4_to_ip6.h
+++ b/src/vnet/ip/ip4_to_ip6.h
@@ -518,7 +518,7 @@ ip4_to_ip6_tcp_udp (vlib_buffer_t * p, ip4_to_ip6_set_fn_t fn, void *ctx)
//UDP checksum is optional over IPv4 but mandatory for IPv6
//We do not check udp->length sanity but use our safe computed value instead
- if (PREDICT_FALSE (!checksum))
+ if (PREDICT_FALSE (!*checksum))
{
u16 udp_len = clib_host_to_net_u16 (ip4->length) - sizeof (*ip4);
csum = ip_incremental_checksum (0, udp, udp_len);