Skip to content

Commit

Permalink
Fix userland build
Browse files Browse the repository at this point in the history
  • Loading branch information
tuexen committed Aug 8, 2023
1 parent 9a8fc34 commit ba012ae
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions usrsctplib/user_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,22 +308,7 @@ sofree(struct socket *so)
void
soabort(struct socket *so)
{
#if defined(INET6)
struct sctp_inpcb *inp;
#endif

#if defined(INET6)
inp = (struct sctp_inpcb *)so->so_pcb;
if (inp->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) {
sctp6_abort(so);
} else {
#if defined(INET)
sctp_abort(so);
#endif
}
#elif defined(INET)
sctp_abort(so);
#endif
ACCEPT_LOCK();
SOCK_LOCK(so);
sofree(so);
Expand Down

0 comments on commit ba012ae

Please sign in to comment.