diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 1a6dd338af73..c648d1410e75 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -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);