mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Use a common way to release locks before exit.
Reviewed by: hsu
This commit is contained in:
parent
33c1de7d1f
commit
d46a53126c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100871
@ -407,8 +407,10 @@ tcp6_usr_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
|
||||
if (IN6_IS_ADDR_V4MAPPED(&sin6p->sin6_addr)) {
|
||||
struct sockaddr_in sin;
|
||||
|
||||
if ((inp->inp_flags & IN6P_IPV6_V6ONLY) != 0)
|
||||
return(EINVAL);
|
||||
if ((inp->inp_flags & IN6P_IPV6_V6ONLY) != 0) {
|
||||
error = EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
in6_sin6_2_sin(&sin, sin6p);
|
||||
inp->inp_vflag |= INP_IPV4;
|
||||
|
Loading…
Reference in New Issue
Block a user