datapath: Avoid freeing wild pointer in corner case.
[sliver-openvswitch.git] / datapath / flow.c
index f264866..d670925 100644 (file)
@@ -196,6 +196,7 @@ struct sw_flow *flow_alloc(void)
 
        spin_lock_init(&flow->lock);
        atomic_set(&flow->refcnt, 1);
+       flow->sf_acts = NULL;
        flow->dead = false;
 
        return flow;