mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
Fix a shadowed variable warning.
Thanks to Peter Lei for reporting the issue. Approved by: re(kib@) MFH: 1 month Sponsored by: Netflix, Inc.
This commit is contained in:
parent
cb892a4117
commit
c6c0be2765
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338291
@ -1662,7 +1662,6 @@ tcp_ctloutput(struct socket *so, struct sockopt *sopt)
|
||||
return (0);
|
||||
}
|
||||
if (tp->t_state != TCPS_CLOSED) {
|
||||
int error=EINVAL;
|
||||
/*
|
||||
* The user has advanced the state
|
||||
* past the initial point, we may not
|
||||
@ -1675,7 +1674,8 @@ tcp_ctloutput(struct socket *so, struct sockopt *sopt)
|
||||
* still be possible?
|
||||
*/
|
||||
error = (*blk->tfb_tcp_handoff_ok)(tp);
|
||||
}
|
||||
} else
|
||||
error = EINVAL;
|
||||
if (error) {
|
||||
refcount_release(&blk->tfb_refcnt);
|
||||
INP_WUNLOCK(inp);
|
||||
|
Loading…
Reference in New Issue
Block a user