From 874bb0cbc1a6da61dfc71f4f4c58617cdc0a8df4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 6 Aug 2008 11:40:14 -0700 Subject: [PATCH] Fix uninitialized struct member in userspace table-linear. --- switch/table-linear.c | 1 + 1 file changed, 1 insertion(+) diff --git a/switch/table-linear.c b/switch/table-linear.c index 43e56e9a..fa87763b 100644 --- a/switch/table-linear.c +++ b/switch/table-linear.c @@ -92,6 +92,7 @@ static int table_linear_insert(struct sw_table *swt, struct sw_flow *flow) tl->n_flows++; /* Insert the entry immediately in front of where we're pointing. */ + flow->serial = tl->next_serial++; list_insert(&f->node, &flow->node); list_push_front(&tl->iter_flows, &flow->iter_node); -- 2.30.2