Page MenuHomeFreeBSD

D56067.diff
No OneTemporary

D56067.diff

diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -396,10 +396,11 @@
if (already_listening)
goto out;
- if (error == 0)
+ if (error == 0) {
in_pcblisten(inp);
- if (tp->t_flags & TF_FASTOPEN)
- tp->t_tfo_pending = tcp_fastopen_alloc_counter();
+ if (tp->t_flags & TF_FASTOPEN)
+ tp->t_tfo_pending = tcp_fastopen_alloc_counter();
+ }
out:
tcp_bblog_pru(tp, PRU_LISTEN, error);
@@ -460,12 +461,11 @@
if (already_listening)
goto out;
- if (error == 0)
+ if (error == 0) {
in_pcblisten(inp);
- if (tp->t_flags & TF_FASTOPEN)
- tp->t_tfo_pending = tcp_fastopen_alloc_counter();
-
- if (error != 0)
+ if (tp->t_flags & TF_FASTOPEN)
+ tp->t_tfo_pending = tcp_fastopen_alloc_counter();
+ } else
inp->inp_vflag = vflagsav;
out:

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 16, 7:14 AM (11 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35128925
Default Alt Text
D56067.diff (839 B)

Event Timeline