mirror of
https://github.com/bol-van/zapret2.git
synced 2026-08-31 14:21:31 +04:00
nfqws2: fix crash
This commit is contained in:
+4
-6
@@ -690,12 +690,10 @@ static uint8_t desync(
|
|||||||
ctx.func = func->func;
|
ctx.func = func->func;
|
||||||
desync_instance(func->func, dp->n, func_n, instance, sizeof(instance));
|
desync_instance(func->func, dp->n, func_n, instance, sizeof(instance));
|
||||||
ctx.instance = instance;
|
ctx.instance = instance;
|
||||||
|
range = bIncoming ? &func->range_in : &func->range_out;
|
||||||
|
|
||||||
if (b_unwanted_payload)
|
if (b_unwanted_payload)
|
||||||
{
|
|
||||||
range = bIncoming ? &func->range_in : &func->range_out;
|
|
||||||
b_unwanted_payload &= !l7_payload_match(l7payload, func->payload_type);
|
b_unwanted_payload &= !l7_payload_match(l7payload, func->payload_type);
|
||||||
}
|
|
||||||
|
|
||||||
if (b_cutoff_all)
|
if (b_cutoff_all)
|
||||||
{
|
{
|
||||||
@@ -703,7 +701,7 @@ static uint8_t desync(
|
|||||||
DLOG("* lua '%s' : voluntary cutoff\n", instance);
|
DLOG("* lua '%s' : voluntary cutoff\n", instance);
|
||||||
else if (check_pos_cutoff(ctrack, bIncoming, range))
|
else if (check_pos_cutoff(ctrack, bIncoming, range))
|
||||||
{
|
{
|
||||||
DLOG("* lua '%s' : %s pos %c%u %c%u is beyond range %c%u%c%c%u (ctrack %s)\n",
|
DLOG("* lua '%s' : %s pos %c%llu %c%llu is beyond range %c%u%c%c%u (ctrack %s)\n",
|
||||||
instance, sDirection,
|
instance, sDirection,
|
||||||
range->from.mode, pos_get(ctrack, range->from.mode, bIncoming),
|
range->from.mode, pos_get(ctrack, range->from.mode, bIncoming),
|
||||||
range->to.mode, pos_get(ctrack, range->to.mode, bIncoming),
|
range->to.mode, pos_get(ctrack, range->to.mode, bIncoming),
|
||||||
@@ -769,7 +767,7 @@ static uint8_t desync(
|
|||||||
range = bIncoming ? &func->range_in : &func->range_out;
|
range = bIncoming ? &func->range_in : &func->range_out;
|
||||||
if (check_pos_range(ctrack, bIncoming, range))
|
if (check_pos_range(ctrack, bIncoming, range))
|
||||||
{
|
{
|
||||||
DLOG("* lua '%s' : %s pos %c%u %c%u in range %c%u%c%c%u\n",
|
DLOG("* lua '%s' : %s pos %c%llu %c%llu in range %c%u%c%c%u\n",
|
||||||
instance, sDirection,
|
instance, sDirection,
|
||||||
range->from.mode, pos_get(ctrack, range->from.mode, bIncoming),
|
range->from.mode, pos_get(ctrack, range->from.mode, bIncoming),
|
||||||
range->to.mode, pos_get(ctrack, range->to.mode, bIncoming),
|
range->to.mode, pos_get(ctrack, range->to.mode, bIncoming),
|
||||||
@@ -846,7 +844,7 @@ static uint8_t desync(
|
|||||||
DLOG("* lua '%s' : payload_type '%s' does not satisfy filter\n", instance, l7payload_str(l7payload));
|
DLOG("* lua '%s' : payload_type '%s' does not satisfy filter\n", instance, l7payload_str(l7payload));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
DLOG("* lua '%s' : %s pos %c%u %c%u out of range %c%u%c%c%u\n",
|
DLOG("* lua '%s' : %s pos %c%llu %c%llu out of range %c%u%c%c%u\n",
|
||||||
instance, sDirection,
|
instance, sDirection,
|
||||||
range->from.mode, pos_get(ctrack, range->from.mode, bIncoming),
|
range->from.mode, pos_get(ctrack, range->from.mode, bIncoming),
|
||||||
range->to.mode, pos_get(ctrack, range->to.mode, bIncoming),
|
range->to.mode, pos_get(ctrack, range->to.mode, bIncoming),
|
||||||
|
|||||||
Reference in New Issue
Block a user