]> git.proxmox.com Git - mirror_ovs.git/commitdiff
dpif: Don't initialize output UFID in dpif_flow_get().
authorJoe Stringer <joestringer@nicira.com>
Wed, 3 Dec 2014 20:57:02 +0000 (12:57 -0800)
committerJoe Stringer <joestringer@nicira.com>
Thu, 11 Dec 2014 23:34:58 +0000 (12:34 +1300)
The UFID parameter to dpif_flow_get() is optional, but the current
implementation dereferences it to initialize part of the output flow.
This field is filled in by the dpif implementation, so don't initialize
it here.

This does not fix any existing bug because every caller currently passes
in a UFID. The next patch will introduce the first call to
dpif_flow_get() that doesn't provide a UFID, which would break without
this change.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/dpif.c

index 50a7cc196a5dde540dc870be9843c9b183dd5540..87954ed3ba89a545b192d11ab40e57250656f5c4 100644 (file)
@@ -893,7 +893,6 @@ dpif_flow_get(struct dpif *dpif,
     op.u.flow_get.flow = flow;
     op.u.flow_get.flow->key = key;
     op.u.flow_get.flow->key_len = key_len;
-    op.u.flow_get.flow->ufid = *ufid;
 
     opp = &op;
     dpif_operate(dpif, &opp, 1);