Skip to content
Snippets Groups Projects
Commit 31964897 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "res_crypto: Perform cleanup at shutdown."

parents b543e389 dc2c000f
No related branches found
No related tags found
No related merge requests found
......@@ -652,13 +652,17 @@ static int load_module(void)
} else {
crypto_load(-1, -1);
}
/* This prevents dlclose from ever running, but allows CLI cleanup at shutdown. */
ast_module_shutdown_ref(ast_module_info->self);
return AST_MODULE_LOAD_SUCCESS;
}
static int unload_module(void)
{
/* Can't unload this once we're loaded */
return -1;
ast_cli_unregister_multiple(cli_crypto, ARRAY_LEN(cli_crypto));
return 0;
}
/* needs usecount semantics defined */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment