diff options
-rw-r--r-- | sys/netinet/tcp_output.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 0f889b4..ce5f13b 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -874,9 +874,8 @@ send: * No need to check for TH_FIN here because * the TF_SENTFIN flag handles that case. */ - if (flags & TH_SYN) - tp->snd_nxt--; - tp->snd_nxt -= len; + if ((flags & TH_SYN) == 0) + tp->snd_nxt -= len; } out: |