View | Details | Raw Unified | Return to bug 226421
Collapse All | Expand All

(-)sys/netinet/tcp_usrreq.c (-1 / +3 lines)
Lines 765-777 tcp6_usr_accept(struct socket *so, struct sockaddr **nam) Link Here
765
	 * copy the data of interest and defer the malloc until after we
765
	 * copy the data of interest and defer the malloc until after we
766
	 * release the lock.
766
	 * release the lock.
767
	 */
767
	 */
768
	if (inp->inp_vflag & INP_IPV4) {
768
	if ((inp->inp_vflag & (INP_IPV4 | INP_IPV6)) == INP_IPV4) {
769
		v4 = 1;
769
		v4 = 1;
770
		port = inp->inp_fport;
770
		port = inp->inp_fport;
771
		addr = inp->inp_faddr;
771
		addr = inp->inp_faddr;
772
		inp->inp_vflag |= INP_IPV6PROTO;
772
	} else {
773
	} else {
773
		port = inp->inp_fport;
774
		port = inp->inp_fport;
774
		addr6 = inp->in6p_faddr;
775
		addr6 = inp->in6p_faddr;
776
		inp->inp_vflag &= ~INP_IPV4;
775
	}
777
	}
776
778
777
out:
779
out:

Return to bug 226421