r297225 move the assignment of sin from add to the top of the function.
sin is not changed after the initial assignment, so no need to set it again. MFC after: 10 days
This commit is contained in:
parent
e932299837
commit
ade1258dc1
@ -1275,7 +1275,6 @@ udp_output(struct inpcb *inp, struct mbuf *m, struct sockaddr *addr,
|
||||
*/
|
||||
pr = inp->inp_socket->so_proto->pr_protocol;
|
||||
pcbinfo = udp_get_inpcbinfo(pr);
|
||||
sin = (struct sockaddr_in *)addr;
|
||||
if (sin != NULL &&
|
||||
(inp->inp_laddr.s_addr == INADDR_ANY && inp->inp_lport == 0)) {
|
||||
INP_HASH_WLOCK(pcbinfo);
|
||||
|
Loading…
x
Reference in New Issue
Block a user