Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kagasu committed Apr 1, 2021
1 parent d68818a commit 53f06c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android_app/app/src/main/cpp/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 53f06c2

Please sign in to comment.