ovn-nbd: Fix unsafe HMAP_FOR_EACH_WITH_HASH usage.
authorRussell Bryant <rbryant@redhat.com>
Wed, 15 Apr 2015 01:52:54 +0000 (21:52 -0400)
committerBen Pfaff <blp@nicira.com>
Thu, 16 Apr 2015 17:57:57 +0000 (10:57 -0700)
commit1d4e6b55b50ce8455ff94593f18ef84a25a24680
tree80285047fde47d0b4c14b96380eea9320deaaf60
parentcf1486e00425999e7244656047c1b23ef6fc7708
ovn-nbd: Fix unsafe HMAP_FOR_EACH_WITH_HASH usage.

The previous code assumed that hash_node would be NULL when the loop
terminated without a match.  That's not the case, so track the match a
little differently.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ovn/ovn-nbd.c