time SO_LINGER case is separated, so there is no reason for dedicated
switch block.
ok bluhm
-/* $OpenBSD: uipc_socket.c,v 1.308 2023/08/08 22:06:27 mvs Exp $ */
+/* $OpenBSD: uipc_socket.c,v 1.309 2023/08/08 22:07:25 mvs Exp $ */
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
}
error = ENOPROTOOPT;
} else {
- switch (optname) {
- case SO_BINDANY:
- if ((error = suser(curproc)) != 0) /* XXX */
- return (error);
- break;
- }
-
switch (optname) {
case SO_LINGER:
break;
case SO_BINDANY:
+ if ((error = suser(curproc)) != 0) /* XXX */
+ return (error);
+ /* FALLTHROUGH */
+
case SO_DEBUG:
case SO_KEEPALIVE:
case SO_USELOOPBACK: