From f9c6e2f2827a7068f8149d3d4cefc12e0713b56b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 2 Mar 2009 14:12:26 -0800 Subject: [PATCH] vswitchd: Fix segfault when packet received on unknown port. This problem and its fixed are independent of the recent secchan restructuring (even though it turned out to be a good way to trigger it). --- vswitchd/bridge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index bac25b16..03cd0167 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -1612,7 +1612,8 @@ process_flow(struct bridge *br, const flow_t *flow, ftf_set_dsts(f, NULL, 0); f->tags = tags; } else { - ft_insert(br->ft, ftf_create(flow, NULL, 0, tags)); + f = ftf_create(flow, NULL, 0, tags); + ft_insert(br->ft, f); } /* Mark the flow as being needed to drop packets. (If we don't do -- 2.30.2