From 458c86531be3a0b6b8f3d8577707520fe28c3586 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sat, 7 Jan 2023 12:02:29 +0300 Subject: [PATCH] Driver: fortcout: Fix packet direction on reauth --- src/driver/fortcout.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/driver/fortcout.c b/src/driver/fortcout.c index c5b9e6f6..ef2d2ed6 100644 --- a/src/driver/fortcout.c +++ b/src/driver/fortcout.c @@ -230,6 +230,10 @@ static void fort_callout_classify(const FWPS_INCOMING_VALUES0 *inFixedValues, const UINT32 classify_flags = inFixedValues->incomingValue[flagsField].value.uint32; + if ((classify_flags & FWP_CONDITION_FLAG_IS_REAUTHORIZE) != 0) { + inbound = (inMetaValues->packetDirection == FWP_DIRECTION_INBOUND); + } + const UINT32 *remote_ip = isIPv6 ? (const UINT32 *) inFixedValues->incomingValue[remoteIpField].value.byteArray16 : &inFixedValues->incomingValue[remoteIpField].value.uint32;