Driver: fortprov: Fix callouts unregistering order

This commit is contained in:
Nodir Temirkhodjaev 2023-01-20 19:38:58 +03:00
parent 6247441199
commit a94383df74
2 changed files with 3 additions and 2 deletions

View File

@ -133,8 +133,8 @@ FORT_API void fort_prov_unregister(HANDLE transEngine)
if (fort_prov_trans_open_engine(transEngine, &engine))
return;
fort_prov_unregister_provider(engine);
fort_prov_unregister_flow_filters(engine);
fort_prov_unregister_provider(engine);
fort_prov_trans_close_engine(transEngine, engine, /*status=*/0);
}

View File

@ -773,7 +773,8 @@ static NTSTATUS fort_callout_force_reauth_prov(
if (old_conf_flags.prov_boot != conf_flags.prov_boot) {
fort_prov_unregister(engine);
if ((status = fort_prov_register(engine, conf_flags.prov_boot)))
status = fort_prov_register(engine, conf_flags.prov_boot);
if (status)
return status;
prov_recreated = TRUE;