mirror of https://github.com/M66B/NetGuard.git
parent
11dadcf93f
commit
56421a954f
|
@ -2454,11 +2454,11 @@ jboolean handle_tcp(const struct arguments *args,
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
struct segment *s = cur->forward;
|
struct segment *s = cur->forward;
|
||||||
while (s != NULL && compare_u16(s->seq, seq) < 0) {
|
while (s != NULL && compare_u16(s->seq + s->len, seq) < 0) {
|
||||||
s = s->next;
|
s = s->next;
|
||||||
}
|
}
|
||||||
if (s != NULL && s->seq == seq)
|
if (s != NULL && s->seq + s->len == seq)
|
||||||
s->confirm = 1; // FIN
|
s->confirm += 1; // FIN
|
||||||
else {
|
else {
|
||||||
log_android(ANDROID_LOG_ERROR,
|
log_android(ANDROID_LOG_ERROR,
|
||||||
"%s no segment for FIN confirm", session);
|
"%s no segment for FIN confirm", session);
|
||||||
|
|
Loading…
Reference in New Issue