1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #15416 from janosbrodbeck/pr/gcoap/tinydtls_ep_family

pkg/tinydtls: set address family of session endpoint on sock_dtls_recv
This commit is contained in:
Leandro Lanzieri 2020-11-10 09:55:25 +01:00 committed by GitHub
commit 20f40091ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -573,6 +573,7 @@ static void _session_to_ep(const session_t *session, sock_udp_ep_t *ep)
{
ep->port = session->port;
ep->netif = session->ifindex;
ep->family = AF_INET6;
memcpy(&ep->addr.ipv6, &session->addr, sizeof(ipv6_addr_t));
}