From 4d8f90b1b10c5c7b8cfaeeb0a2dcfcb2f2c5ff7c Mon Sep 17 00:00:00 2001 From: Daniele Di Proietto Date: Fri, 20 Nov 2015 16:15:36 -0800 Subject: [PATCH] dpif-netdev: Initialize match.tun_md in various places. This solves a crash in dp_netdev_flow_add(), when log level is debug. --- lib/dpif-netdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index a67ef054da5..3bf130db1d4 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -1993,6 +1993,7 @@ dp_netdev_flow_add(struct dp_netdev_pmd_thread *pmd, struct match match; struct ds ds = DS_EMPTY_INITIALIZER; + match.tun_md.valid = false; match.flow = flow->flow; miniflow_expand(&flow->cr.mask->mf, &match.wc.masks); @@ -3300,6 +3301,7 @@ fast_path_processing(struct dp_netdev_pmd_thread *pmd, miss_cnt++; + match.tun_md.valid = false; miniflow_expand(&keys[i].mf, &match.flow); ofpbuf_clear(&actions);