static char proto_name_prev[128];
static dl_t *dl;
-static dl_loader_t *dl_loader;
+static dl_loader_t *dl_loader = NULL;
static fr_event_list_t *el = NULL;
* of a process. Initialise it here so that we don't attempt
* to unload and load it multiple times.
*/
- fr_openssl_init();
+ if (fr_openssl_init() < 0) {
+ fr_perror("unit_test_attribute");
+ EXIT_WITH_FAILURE;
+ }
#endif
modules_init(NULL);
*/
if (dl_loader && (talloc_free(dl_loader) < 0)) {
fr_perror("unit_test_attribute - dl_loader - "); /* Print free order issues */
- ret = EXIT_FAILURE;
+ EXIT_WITH_FAILURE;
}
if (fr_dict_free(&config.dict, __FILE__) < 0) {
fr_perror("unit_test_attribute");
- ret = EXIT_FAILURE;
+ EXIT_WITH_FAILURE;
}
unlang_free_global();
if (receipt_file && (ret == EXIT_SUCCESS) && (fr_touch(NULL, receipt_file, 0644, true, 0755) <= 0)) {
fr_perror("unit_test_attribute");
- ret = EXIT_FAILURE;
+ EXIT_WITH_FAILURE;
}
/*
*/
if (talloc_free(autofree) < 0) {
fr_perror("unit_test_attribute");
- ret = EXIT_FAILURE;
+ EXIT_WITH_FAILURE;
}
/*