From 78b0559257f46a0cff7d1f8d923082598f6f4b17 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 16 Mar 2019 15:58:06 +0000 Subject: [PATCH] Revert "Fixed queuing of extended segments" This reverts commit c192277915dc8315417b6340bc0ffa932643bd9b. --- app/src/main/jni/netguard/tcp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/jni/netguard/tcp.c b/app/src/main/jni/netguard/tcp.c index 102721e3..08a894e6 100644 --- a/app/src/main/jni/netguard/tcp.c +++ b/app/src/main/jni/netguard/tcp.c @@ -1002,16 +1002,11 @@ void queue_tcp(const struct arguments *args, s->len = datalen; s->data = malloc(datalen); memcpy(s->data, data, datalen); - } else { + } else log_android(ANDROID_LOG_ERROR, "%s segment larger %u..%u < %u", session, s->seq - cur->remote_start, s->seq + s->len - cur->remote_start, s->seq + datalen - cur->remote_start); - free(s->data); - s->len = datalen; - s->data = malloc(datalen); - memcpy(s->data, data, datalen); - } } } }