sctp: Use correct address family in sctp_getsockopt_peer_addrs()
authorVlad Yasevich <vladislav.yasevich@hp.com>
Sat, 1 May 2010 01:42:42 +0000 (21:42 -0400)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Sat, 1 May 2010 01:42:42 +0000 (21:42 -0400)
commita5f4cea74f1397bb29d0bbdabeb05bd05a23a741
tree7810a501cb7936897f59970ceb0d1170ba30526a
parent83d7eb2979cd3390c375470225dd2d8f2009bc70
sctp: Use correct address family in sctp_getsockopt_peer_addrs()

The function should use the address family of the address when
trying to determine the length of the structure.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/socket.c