summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-04-09 14:20:52 +0000
committerDave Barach <openvpp@barachs.net>2020-04-09 15:15:10 +0000
commit92bbfc297c1e01037eb80a24bb42f8fe54e8a9b1 (patch)
treeeab1858f1854f0dfd34a51d899782d6526f183a6
parentca578521686790ce1f3b1a8bc43a182fd4949a36 (diff)
udp: fix coverity warning
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I8efde7a4be9b04eae7e30b153de5edab7854496b
-rw-r--r--src/vnet/udp/udp_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/udp/udp_input.c b/src/vnet/udp/udp_input.c
index 0a4af605c18..95595c394e4 100644
--- a/src/vnet/udp/udp_input.c
+++ b/src/vnet/udp/udp_input.c
@@ -98,7 +98,7 @@ udp_trace_buffer (vlib_main_t * vm, vlib_node_runtime_t * node,
t = vlib_add_trace (vm, node, b, sizeof (*t));
t->connection = s ? s->connection_index : ~0;
t->disposition = error0;
- t->thread_index = s->thread_index;
+ t->thread_index = s ? s->thread_index : vm->thread_index;
}
static udp_connection_t *