[ovs-dev] dpif-netdev: Initialize 'tun_md' member of match.
diff mbox

Message ID 1499669501-80363-1-git-send-email-jpettit@ovn.org
State Accepted
Headers show

Commit Message

Justin Pettit July 10, 2017, 6:51 a.m. UTC
Found by valgrind.
---
 lib/dpif-netdev.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Ben Pfaff July 14, 2017, 7:57 p.m. UTC | #1
On Sun, Jul 09, 2017 at 11:51:38PM -0700, Justin Pettit wrote:
> Found by valgrind.

Acked-by: Ben Pfaff <blp@ovn.org>
Justin Pettit July 15, 2017, 8:51 p.m. UTC | #2
> On Jul 14, 2017, at 12:57 PM, Ben Pfaff <blp@ovn.org> wrote:
> 
> On Sun, Jul 09, 2017 at 11:51:38PM -0700, Justin Pettit wrote:
>> Found by valgrind.
> 
> Acked-by: Ben Pfaff <blp@ovn.org>

Thanks.  I pushed this to master.

--Justin

Patch
diff mbox

diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index 6bae4acd0dd9..bf923fa9bee8 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -2430,6 +2430,7 @@  dp_netdev_flow_add(struct dp_netdev_pmd_thread *pmd,
         ds_put_cstr(&ds, "flow match: ");
         miniflow_expand(&flow->cr.flow.mf, &m.flow);
         miniflow_expand(&flow->cr.mask->mf, &m.wc.masks);
+        memset(&m.tun_md, 0, sizeof m.tun_md);
         match_format(&m, NULL, &ds, OFP_DEFAULT_PRIORITY);
 
         VLOG_DBG("%s", ds_cstr(&ds));