Skip to content

Commit

Permalink
tests/lwip_sock_udp: fix sizeof address param in mempcy
Browse files Browse the repository at this point in the history
Co-authored-by: Martine Lenders <m.lenders@fu-berlin.de>
  • Loading branch information
aabadie and miri64 committed Oct 21, 2019
1 parent e66283f commit 300c3ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lwip_sock_udp/stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ void _net_init(void)
ip6_addr_t local6;
s8_t idx;

memcpy(&local6.addr, local6_a, sizeof(local6));
memcpy(&local6.addr, local6_a, sizeof(local6.addr));
ip6_addr_clear_zone(&local6);
netif_add_ip6_address(&netif, &local6, &idx);
for (int i = 0; i <= idx; i++) {
Expand Down Expand Up @@ -213,7 +213,7 @@ void _prepare_send_checks(void)
struct nd6_neighbor_cache_entry *nc = &neighbor_cache[i];
if (nc->state == ND6_NO_ENTRY) {
nc->state = ND6_REACHABLE;
memcpy(&nc->next_hop_address, remote6, sizeof(ip6_addr_t));
memcpy(&nc->next_hop_address.addr, remote6, sizeof(nc->next_hop_address.addr));
ip6_addr_assign_zone(&nc->next_hop_address,
IP6_UNICAST, &netif);
memcpy(&nc->lladdr, mac, 6);
Expand Down

0 comments on commit 300c3ab

Please sign in to comment.