diff --git a/sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c b/sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c index 54cede6288e5..6927ea004f6f 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c +++ b/sys/net/gnrc/network_layer/sixlowpan/iphc/gnrc_sixlowpan_iphc.c @@ -417,7 +417,7 @@ static size_t _iphc_ipv6_decode(const uint8_t *iphc_hdr, ipv6_hdr->dst.u8[1] = iphc_hdr[payload_offset++]; ipv6_hdr->dst.u8[2] = iphc_hdr[payload_offset++]; ipv6_hdr->dst.u8[3] = ctx->prefix_len; - ipv6_addr_init_prefix((ipv6_addr_t *)ipv6_hdr->dst.u8 + 4, + ipv6_addr_init_prefix((ipv6_addr_t *)(ipv6_hdr->dst.u8 + 4), &ctx->prefix, ctx->prefix_len); memcpy(ipv6_hdr->dst.u8 + 12, iphc_hdr + payload_offset + 2, 4);