diff --git a/android_app/app/src/main/cpp/tcp.c b/android_app/app/src/main/cpp/tcp.c index c9760f1..dee35c7 100644 --- a/android_app/app/src/main/cpp/tcp.c +++ b/android_app/app/src/main/cpp/tcp.c @@ -730,7 +730,7 @@ jboolean handle_tcp(const struct arguments *args, } } if (cur->tcp.connect_sent == TCP_CONNECT_NOT_SENT) { - if (len > 0) { + if (len > 0 && datalen > 0) { char buffer[512]; sprintf(buffer, "CONNECT %s:443 HTTP/1.0\r\n\r\n", cur->tcp.hostname);