]> git.proxmox.com Git - ovs.git/commit - ofproto/ofproto.c
ofproto: Don't use connmgr after destruction.
authorJarno Rajahalme <jarno@ovn.org>
Tue, 13 Sep 2016 21:46:16 +0000 (14:46 -0700)
committerJarno Rajahalme <jarno@ovn.org>
Tue, 13 Sep 2016 21:46:16 +0000 (14:46 -0700)
commit25010c68dbcac5f31a53821b0b0ebd9202698a5d
treea02ca67faea2b211423fed756e4a964ae6fc5de0
parent7c127f28a8736dd7657c21cf58685af6c7c93a70
ofproto: Don't use connmgr after destruction.

Set ofproto's connmgr pointer to NULL after the connmgr has been
destructed, and check for NULL when sending a flow removed
notification.

Verified by sending the flow removed message unconditionally and
observing numerous core dumps in the test suite.

Found by inspection.

Fixes: f695ebfae5 ("ofproto: Postpone sending flow removed messages.")
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
ofproto/connmgr.c
ofproto/connmgr.h
ofproto/fail-open.c
ofproto/fail-open.h
ofproto/in-band.c
ofproto/ofproto-provider.h
ofproto/ofproto.c
ofproto/ofproto.h