Skip to content
Snippets Groups Projects
Commit 0d5dafe9 authored by Martine Lenders's avatar Martine Lenders
Browse files

emb6_sock_udp: copy receive remote correctly

The `src` member of `sock_udp_t` for `emb6` is a pointer, not a value,
so it should not be referenced.

This fixes the output issue encountered during the
[2018.10 RC1 testing][RC1].

[RC1]: https://github.com/RIOT-OS/Release-Specs/issues/76#issuecomment-435924505
parent 3122a3ea
No related branches found
No related tags found
No related merge requests found
......@@ -187,7 +187,7 @@ int sock_udp_recv(sock_udp_t *sock, void *data, size_t max_len,
if (remote != NULL) {
remote->family = AF_INET6;
remote->netif = SOCK_ADDR_ANY_NETIF;
memcpy(&remote->addr, &sock->recv_info.src, sizeof(ipv6_addr_t));
memcpy(&remote->addr, sock->recv_info.src, sizeof(ipv6_addr_t));
remote->port = sock->recv_info.src_port;
}
res = (int)sock->recv_info.datalen;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment