charon-cmd: Register atexit() handler for libcharon_deinit twice
Similar to cbe9e575ee, this avoids issues with libraries that are
pulled in via plugins and register their own atexit() handlers.
This commit is contained in:
@@ -348,6 +348,9 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
exit(SS_RC_INITIALIZATION_FAILED);
|
||||
}
|
||||
/* register this again after loading plugins to avoid issues with libraries
|
||||
* that register atexit() handlers */
|
||||
atexit(libcharon_deinit);
|
||||
if (!lib->caps->drop(lib->caps))
|
||||
{
|
||||
exit(SS_RC_INITIALIZATION_FAILED);
|
||||
|
||||
Reference in New Issue
Block a user