diff options
author | Vlad Yasevich <vladislav.yasevich@hp.com> | 2007-07-03 12:43:12 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-05 20:40:08 -0400 |
commit | 3663c306609a9322a484fba28b3da66142c50ee9 (patch) | |
tree | 04715aceacd8b7ef540c2124bc5e6c5ed6b1d2c2 /net/sctp/socket.c | |
parent | 7e8767dddf3ad863a7013c334392e09177b48e2c (diff) |
SCTP: Fix thinko in sctp_copy_laddrs()
Correctly dereference bytes_copied in sctp_copy_laddrs().
I totally must have spaced when doing this.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/socket.c')
-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 67861a8f00cb..1e788279bb22 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -4170,7 +4170,7 @@ static int sctp_copy_laddrs(struct sock *sk, __u16 port, void *to, | |||
4170 | to += addrlen; | 4170 | to += addrlen; |
4171 | cnt ++; | 4171 | cnt ++; |
4172 | space_left -= addrlen; | 4172 | space_left -= addrlen; |
4173 | bytes_copied += addrlen; | 4173 | *bytes_copied += addrlen; |
4174 | } | 4174 | } |
4175 | 4175 | ||
4176 | return cnt; | 4176 | return cnt; |