Skip to content

Commit

Permalink
dpif-netdev: Initialize match.tun_md in various places.
Browse files Browse the repository at this point in the history
This solves a crash in dp_netdev_flow_add(), when log level is debug.
  • Loading branch information
ddiproietto committed Dec 11, 2015
1 parent b41e3e9 commit 4d8f90b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/dpif-netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4d8f90b

Please sign in to comment.