summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2017-06-08 22:09:19 -0700
committerBen Pfaff <blp@ovn.org>2017-06-12 10:53:58 -0700
commitdbece0293eb58680a91465f290238deb26c8d526 (patch)
treef361e926fffc6d6976c3fc1b0e2b01e26d425dc5 /lib
parent28ca969e7cf49e8ec33dbb58e53863adcee38a33 (diff)
downloadopenvswitch-dbece0293eb58680a91465f290238deb26c8d526.tar.gz
ofp-util: Initialize tunnel metadata for OpenFlow 1.0 matches.
Found by valgrind. Signed-off-by: Ben Pfaff <blp@ovn.org> Tested-by: Lance Richardson <lrichard@redhat.com> Acked-by: Lance Richardson <lrichard@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/ofp-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index 601a71979..da171cdf6 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -159,6 +159,7 @@ ofputil_match_from_ofp10_match(const struct ofp10_match *ofmatch,
/* Initialize match->wc. */
memset(&match->flow, 0, sizeof match->flow);
ofputil_wildcard_from_ofpfw10(ofpfw, &match->wc);
+ memset(&match->tun_md, 0, sizeof match->tun_md);
/* Initialize most of match->flow. */
match->flow.nw_src = ofmatch->nw_src;