* copy the data of interest and defer the malloc until after we
* release the lock.
*/
if (inp->inp_vflag & INP_IPV4) {
if ((inp->inp_vflag & (INP_IPV4 | INP_IPV6)) == INP_IPV4) {
v4 = 1;
port = inp->inp_fport;
addr = inp->inp_faddr;
inp->inp_vflag |= INP_IPV6PROTO;
} else {
addr6 = inp->in6p_faddr;
inp->inp_vflag &= ~INP_IPV4;
}
out: