Skip to content

Commit a157343

Browse files
committed
indent correctly
1 parent 939d46c commit a157343

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

freebsd/netinet/tcp_usrreq.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,19 +1321,20 @@ tcp_connect(struct tcpcb *tp, struct sockaddr *nam, struct thread *td)
13211321
error = EADDRINUSE;
13221322
goto out;
13231323
}
1324-
// inp->inp_lport != lport means in_pcbconnect_setup selected new port to inp->inp_lport.
1325-
// inp will inhash.
1324+
1325+
// inp->inp_lport != lport means in_pcbconnect_setup selected new port to inp->inp_lport.
1326+
// inp will inhash.
13261327
if (in_pcbinshash(inp) != 0) {
1327-
inp->inp_laddr.s_addr = INADDR_ANY;
1328-
inp->inp_lport = 0;
1329-
return (EAGAIN);
1330-
}
1328+
inp->inp_laddr.s_addr = INADDR_ANY;
1329+
inp->inp_lport = 0;
1330+
return (EAGAIN);
1331+
}
13311332
}
13321333
else
13331334
{
1334-
// app call bind() and connect(), lport is set when bind, and the inp is inhashed in bind() function.
1335-
// in_pcbconnect_setup() update inp->inp_faddr/inp->inp_fport, so inp should be rehashed.
1336-
in_pcbrehash(inp);
1335+
// app call bind() and connect(), lport is set when bind, and the inp is inhashed in bind() function.
1336+
// in_pcbconnect_setup() update inp->inp_faddr/inp->inp_fport, so inp should be rehashed.
1337+
in_pcbrehash(inp);
13371338
}
13381339

13391340
if (anonport) {

0 commit comments

Comments
 (0)