Check remote sequence only for ACK

Fixes #299
This commit is contained in:
M66B 2016-02-07 18:49:00 +01:00
parent cde04f9829
commit 741da619e1
1 changed files with 1 additions and 1 deletions

View File

@ -2437,7 +2437,7 @@ jboolean handle_tcp(const struct arguments *args,
return 0;
}
else {
if (ntohl(tcphdr->ack_seq) == cur->local_seq) {
if (!tcphdr->ack || ntohl(tcphdr->ack_seq) == cur->local_seq) {
if (tcphdr->syn) {
log_android(ANDROID_LOG_WARN, "%s repeated SYN", session);
// The socket is likely not opened yet