Skip to content

Commit

Permalink
Changed is_engine_opened typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shpalani committed Apr 27, 2023
1 parent 7094310 commit 80a412d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netebpfext/net_ebpf_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ net_ebpf_extension_initialize_wfp_components(_Inout_ void* device_object)

UNREFERENCED_PARAMETER(device_object);

BOOLEAN is_engined_opened = FALSE;
BOOLEAN is_engine_opened = FALSE;
BOOLEAN is_in_transaction = FALSE;

FWPM_SESSION session = {0};
Expand All @@ -610,7 +610,7 @@ net_ebpf_extension_initialize_wfp_components(_Inout_ void* device_object)

status = FwpmEngineOpen(NULL, RPC_C_AUTHN_WINNT, NULL, &session, &_fwp_engine_handle);
NET_EBPF_EXT_BAIL_ON_API_FAILURE_STATUS("FwpmEngineOpen", status);
is_engined_opened = TRUE;
is_engine_opened = TRUE;

status = FwpmTransactionBegin(_fwp_engine_handle, 0);
NET_EBPF_EXT_BAIL_ON_API_FAILURE_STATUS("FwpmTransactionBegin", status);
Expand Down Expand Up @@ -668,7 +668,7 @@ net_ebpf_extension_initialize_wfp_components(_Inout_ void* device_object)
}
}

if (is_engined_opened) {
if (is_engine_opened) {
net_ebpf_extension_uninitialize_wfp_components();
}
}
Expand Down

0 comments on commit 80a412d

Please sign in to comment.