Skip to content

Commit

Permalink
[SCTP]: Use the flags value that is passed as an arg to sctp_accept.
Browse files Browse the repository at this point in the history
No need to do multiple dereferences - sk->sk_socket->file->f_flags

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sridhar Samudrala authored and David S. Miller committed Sep 22, 2006
1 parent eb5fa39 commit 8abfedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -2970,7 +2970,7 @@ SCTP_STATIC struct sock *sctp_accept(struct sock *sk, int flags, int *err)
goto out;
}

timeo = sock_rcvtimeo(sk, sk->sk_socket->file->f_flags & O_NONBLOCK);
timeo = sock_rcvtimeo(sk, flags & O_NONBLOCK);

error = sctp_wait_for_accept(sk, timeo);
if (error)
Expand Down

0 comments on commit 8abfedd

Please sign in to comment.