]> mj.ucw.cz Git - netgrind.git/commitdiff
Bug...
authorMartin Mares <mj@ucw.cz>
Fri, 6 Jun 2003 23:20:44 +0000 (23:20 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 6 Jun 2003 23:20:44 +0000 (23:20 +0000)
netgrind/netgrind.c

index 9ef3f7827ed42c64ad99530432a20c5bc0c2b2e1..fda19165e35da9d5f2823beb5208d4390af7d5c7 100644 (file)
@@ -372,7 +372,7 @@ static void tcp_got_packet(struct iphdr *iph, struct pkt *p)
 
   if (tcph->ack)
     {
-      if (b->state == FLOW_SYN_SENT_ACK && b->last_acked_seq+1)
+      if (b->state == FLOW_SYN_SENT_ACK && b->last_acked_seq+1 == ack)
        {
          a->state = b->state = FLOW_ESTABLISHED;
          b->last_acked_seq = ack+1;