ofproto: Fix order of destruction in ofproto_destroy().
authorBen Pfaff <blp@nicira.com>
Thu, 31 Mar 2011 21:11:57 +0000 (14:11 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 31 Mar 2011 21:28:42 +0000 (14:28 -0700)
commitf41240e6f32f1162132d4f307e95e4d452e24a0f
tree6e3c684f93f077167baf31777bd436d4de2ec10c
parentac1e8ee90853b5d248ea5d2d0f63ce0b5686a5b7
ofproto: Fix order of destruction in ofproto_destroy().

ofproto_flush_flows() calls into the connmgr (via connmgr_flushed()) so
it must be called before destroying the connmgr to avoid a use-after-free
error.

Bug #5231.
Reported-by: Krishna Miriyala <krishna@nicira.com>
ofproto/ofproto.c