Skip to content

Commit

Permalink
[SCTP] Fix SCTP_ASSOCINFO getsockopt for 1-1 style
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vladislav Yasevich authored and David S. Miller committed Apr 28, 2005
1 parent f4d0ee9 commit 1733721
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 @@ -3473,7 +3473,7 @@ static int sctp_getsockopt_associnfo(struct sock *sk, int len,
return -EINVAL;

/* Values correspoinding to the specific association */
if (assocparams.sasoc_assoc_id != 0) {
if (asoc) {
assocparams.sasoc_asocmaxrxt = asoc->max_retrans;
assocparams.sasoc_peer_rwnd = asoc->peer.rwnd;
assocparams.sasoc_local_rwnd = asoc->a_rwnd;
Expand Down

0 comments on commit 1733721

Please sign in to comment.