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

examples: dtls-echo: remove unneeded addressing operator

`SOCK_ADDR_ANY_NETIF` isn't a pointer so using the addressing operator
for `remote.netif` here is wrong.
parent 233935c5
No related branches found
No related tags found
No related merge requests found
...@@ -119,7 +119,7 @@ static void dtls_handle_read(dtls_context_t *ctx) ...@@ -119,7 +119,7 @@ static void dtls_handle_read(dtls_context_t *ctx)
/* session requires the remote socket (IPv6:UDP) address and netif */ /* session requires the remote socket (IPv6:UDP) address and netif */
session.size = sizeof(uint8_t) * 16 + sizeof(unsigned short); session.size = sizeof(uint8_t) * 16 + sizeof(unsigned short);
session.port = remote.port; session.port = remote.port;
if (&remote.netif == SOCK_ADDR_ANY_NETIF) { if (remote.netif == SOCK_ADDR_ANY_NETIF) {
session.ifindex = SOCK_ADDR_ANY_NETIF; session.ifindex = SOCK_ADDR_ANY_NETIF;
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment