diff options
author | Vladislav Yasevich <vladislav.yasevich@hp.com> | 2005-04-28 22:57:54 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-04-28 22:57:54 +0400 |
commit | 173372162ddbd414cc471c1a3a52ad7ea279aaf4 (patch) | |
tree | c5a3642f18f171b57c1154ec25fafdfd14d99502 /net/sctp | |
parent | f4d0ee983ec01e59a77e157ab702246f397b2a2b (diff) | |
download | linux-173372162ddbd414cc471c1a3a52ad7ea279aaf4.tar.xz |
[SCTP] Fix SCTP_ASSOCINFO getsockopt for 1-1 style
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>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index e8c210182571..32f2249411fa 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -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; |