ofproto: Fix duplicate hmap_remove() in ofproto_destroy().
authorBen Pfaff <blp@nicira.com>
Thu, 12 May 2011 19:21:23 +0000 (12:21 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 12 May 2011 19:21:23 +0000 (12:21 -0700)
commit8dd5089e2ba60908864931cbbbcad7d281e24d34
tree86f2fb6a43a796560a7db3aaf5c2d5dded3671a3
parent93946b3ed75d2d5b55a43c9b5c5df2ca7f0956be
ofproto: Fix duplicate hmap_remove() in ofproto_destroy().

Both ofport_destroy() and its caller ofproto_destroy() were attempting to
remove the ofport's hmap_node from the ofproto's 'ports' hmap, resulting
in a use-after-free error.

Reported-by: Michael MAO <mmao@nicira.com>
ofproto/ofproto.c