[ovs-dev] [RFC 02/14] dpif: Zero flow before dpif_flow_get().

Joe Stringer joestringer at nicira.com
Thu Aug 21 05:41:57 UTC 2014


Signed-off-by: Joe Stringer <joestringer at nicira.com>
---
 lib/dpif.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/dpif.c b/lib/dpif.c
index b2a1972..1a32ef6 100644
--- a/lib/dpif.c
+++ b/lib/dpif.c
@@ -840,6 +840,7 @@ dpif_flow_get(struct dpif *dpif,
     struct dpif_op *opp;
     struct dpif_op op;
 
+    memset(flow, 0, sizeof *flow);
     op.type = DPIF_OP_FLOW_GET;
     op.u.flow_get.key = key;
     op.u.flow_get.key_len = key_len;
-- 
1.7.10.4




More information about the dev mailing list