From: Vlad Yasevich Date: Tue, 3 Jul 2007 16:43:12 +0000 (-0400) Subject: SCTP: Fix thinko in sctp_copy_laddrs() X-Git-Tag: v2.6.22~11^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3663c306609a9322a484fba28b3da66142c50ee9;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: David S. Miller --- diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 67861a8f00c..1e788279bb2 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, to += addrlen; cnt ++; space_left -= addrlen; - bytes_copied += addrlen; + *bytes_copied += addrlen; } return cnt;