kernel-wfp: Fix remote port in traffic selectors in acquires

Fixes: c6f189e448 ("kernel-wfp: Add support for trap policies and acquires")
This commit is contained in:
Tobias Brunner
2026-07-23 10:26:08 +02:00
parent 9598de465c
commit 3a30390d91
@@ -1715,7 +1715,7 @@ static void WINAPI event_callback(void *user, const FWPM_NET_EVENT1 *event)
{
from_local = to_local = event->header.localPort;
}
if (event->header.flags & FWPM_NET_EVENT_FLAG_LOCAL_PORT_SET)
if (event->header.flags & FWPM_NET_EVENT_FLAG_REMOTE_PORT_SET)
{
from_remote = to_remote = event->header.remotePort;
}