summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-03-03 09:54:33 -0800
committerBen Pfaff <blp@nicira.com>2011-03-03 09:54:33 -0800
commit2f436da3b23102b91b020e9a7a3001147fc89832 (patch)
tree3fd2c9a2f0b6c2ea591db42b4620a1decf145f13
parentbc3167f128e093f6c4cdcb967d087562eaf3382b (diff)
downloadopenvswitch-wdp.tar.gz
wdp-xflow: Remove wx structure from global list when closing.wdp
Fixes a use-after-free error in wx_run(). Reported-by: Hao Zheng <hzheng@nicira.com>
-rw-r--r--ofproto/wdp-xflow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ofproto/wdp-xflow.c b/ofproto/wdp-xflow.c
index 09cdc7dee..0cc6fc7fa 100644
--- a/ofproto/wdp-xflow.c
+++ b/ofproto/wdp-xflow.c
@@ -1386,6 +1386,7 @@ wx_close(struct wdp *wdp)
{
struct wx *wx = wx_cast(wdp);
+ list_remove(&wx->list_node);
wx_flow_flush(wdp);
xfif_close(wx->xfif);
classifier_destroy(&wx->cls);