mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Simplify sosetopt() so that function has single return point. No
functional change.
This commit is contained in:
parent
8b5fede0ac
commit
bcc3cec43c
1 changed files with 3 additions and 5 deletions
|
|
@ -2755,12 +2755,10 @@ sosetopt(struct socket *so, struct sockopt *sopt)
|
|||
CURVNET_SET(so->so_vnet);
|
||||
error = 0;
|
||||
if (sopt->sopt_level != SOL_SOCKET) {
|
||||
if (so->so_proto->pr_ctloutput != NULL) {
|
||||
if (so->so_proto->pr_ctloutput != NULL)
|
||||
error = (*so->so_proto->pr_ctloutput)(so, sopt);
|
||||
CURVNET_RESTORE();
|
||||
return (error);
|
||||
}
|
||||
error = ENOPROTOOPT;
|
||||
else
|
||||
error = ENOPROTOOPT;
|
||||
} else {
|
||||
switch (sopt->sopt_name) {
|
||||
case SO_ACCEPTFILTER:
|
||||
|
|
|
|||
Loading…
Reference in a new issue