From: Vladislav Yasevich Date: Thu, 28 Apr 2005 18:57:54 +0000 (-0700) Subject: [SCTP] Fix SCTP_ASSOCINFO getsockopt for 1-1 style X-Git-Tag: v2.6.12-rc4~192 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=173372162ddbd414cc471c1a3a52ad7ea279aaf4;p=karo-tx-linux.git [SCTP] Fix SCTP_ASSOCINFO getsockopt for 1-1 style Signed-off-by: Vladislav Yasevich Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller --- 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;