From: Ben Pfaff Date: Mon, 2 Mar 2009 22:12:26 +0000 (-0800) Subject: vswitchd: Fix segfault when packet received on unknown port. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9c6e2f2827a7068f8149d3d4cefc12e0713b56b;p=openvswitch 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). --- 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