Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3663c306 authored by Vlad Yasevich's avatar Vlad Yasevich Committed by David S. Miller
Browse files

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: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7e8767dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;