We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e70312 commit 59f205cCopy full SHA for 59f205c
android_app/app/src/main/cpp/tcp.c
@@ -273,15 +273,14 @@ void check_tcp_socket(const struct arguments *args,
273
write_rst(args, &s->tcp);
274
} else {
275
if (s->tcp.connect_sent == TCP_CONNECT_SENT) {
276
- buffer[bytes] = '\0';
+ if (strcmp(buffer, "HTTP/1.0 200") == 0 || strcmp(buffer, "HTTP/1.1 200") == 0) {
277
+ buffer[bytes] = '\0';
278
s->tcp.connect_sent = TCP_CONNECT_ESTABLISHED;
279
while (recv(s->socket, buffer, sizeof(buffer), 0) > 0) {}
280
s->tcp.state = TCP_SYN_RECV;
281
282
283
}
- if (strcmp(buffer, "HTTP/1.0 200") == 0 || strcmp(buffer, "HTTP/1.1 200") == 0) {
284
-
285
286
287
0 commit comments