Skip to content

Commit

Permalink
SCTP: Fix thinko in sctp_copy_laddrs()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vlad Yasevich authored and David S. Miller committed Jul 6, 2007
1 parent 7e8767d commit 3663c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3663c30

Please sign in to comment.