summaryrefslogtreecommitdiff
path: root/net/sctp
diff options
context:
space:
mode:
authorVladislav Yasevich <vladislav.yasevich@hp.com>2005-04-28 11:57:54 -0700
committerDavid S. Miller <davem@davemloft.net>2005-04-28 11:57:54 -0700
commit173372162ddbd414cc471c1a3a52ad7ea279aaf4 (patch)
treec5a3642f18f171b57c1154ec25fafdfd14d99502 /net/sctp
parentf4d0ee983ec01e59a77e157ab702246f397b2a2b (diff)
[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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index e8c21018257..32f2249411f 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;