]> git.proxmox.com Git - mirror_ovs.git/commit
ofctrl: Fix use of uninitialized hash value in ofctrl_add_flow().
authorBen Pfaff <blp@nicira.com>
Tue, 28 Jul 2015 18:25:59 +0000 (11:25 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 28 Jul 2015 19:41:42 +0000 (12:41 -0700)
commitadc48a5d252c28bd568bc1d13f0c2a4784f5a5e9
tree865efdb5b6c9130ec6b99eed6ae077435f793dc8
parent34f3e8406b005bf4ed9029e98b68eb53f366d0f1
ofctrl: Fix use of uninitialized hash value in ofctrl_add_flow().

When ofctrl_add_flow() called ovn_flow_lookup(), the latter used the hash
from the flow's hmap_node, but the former hadn't initialized it at that
point.  This commit fixes the problem.

Reported-by: Russell Bryant <rbryant@redhat.com>
Reported-at: http://openvswitch.org/pipermail/dev/2015-July/057851.html
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
ovn/controller/ofctrl.c