Driver: Fix provider filters updating.

This commit is contained in:
Nodir Temirkhodjaev 2017-12-12 08:27:25 +05:00
parent 93180441b1
commit f9b1fc04ac

View File

@ -409,9 +409,10 @@ fort_callout_force_reauth (PDEVICE_OBJECT device,
if (!NT_SUCCESS(status)) {
DbgPrintEx(DPFLTR_IHVNETWORK_ID, DPFLTR_ERROR_LEVEL,
"FORT: Prov. Register: Error: %d\n", status);
return status;
}
goto end;
goto stat;
}
/* Check flow filter */
@ -420,12 +421,14 @@ fort_callout_force_reauth (PDEVICE_OBJECT device,
fort_prov_flow_unregister();
}
stat:
if (conf_flags.log_stat) {
status = fort_prov_flow_register();
if (!NT_SUCCESS(status)) {
DbgPrintEx(DPFLTR_IHVNETWORK_ID, DPFLTR_ERROR_LEVEL,
"FORT: Prov. Flow Register: Error: %d\n", status);
return status;
}
}
@ -437,13 +440,14 @@ fort_callout_force_reauth (PDEVICE_OBJECT device,
if (!NT_SUCCESS(status)) {
DbgPrintEx(DPFLTR_IHVNETWORK_ID, DPFLTR_ERROR_LEVEL,
"FORT: Prov. Reauth: Error: %d\n", status);
return status;
}
end:
fort_timer_update(&g_device->timer, conf_flags);
fort_stat_update(&g_device->stat, conf_flags, g_device->flow4_id);
return status;
return STATUS_SUCCESS;
}
static void