Fix for https://bugs.launchpad.net/moonshot/+bug/1705714 (Infinite loop in tids exit...
authorDan Breslau <dbreslau@painless-security.com>
Fri, 21 Jul 2017 13:59:04 +0000 (09:59 -0400)
committerDan Breslau <dbreslau@painless-security.com>
Mon, 24 Jul 2017 21:45:29 +0000 (17:45 -0400)
commite741515228135ff735175923eb0ec09a817ee4e4
tree2ea8129b66259c4e7b1fc41057df67150ae721df
parentfc78c30acf20d98c3b37dd953aae34d353406925
Fix for https://bugs.launchpad.net/moonshot/+bug/1705714 (Infinite loop in tids exit handlers)

Refactored the C++ static object whose destructor was unloading the libraries.
The shibresolver library is now unloaded by a "smaller" static object that is
created after shibresolver is loaded. Creating that object late means that it
will be destroyed earlier, before the static objects in the log4shib library
are destroyed.
mech_eap/eap_mech.c
mech_eap/util_attr.cpp
mech_eap/util_shib.cpp