From d708e95681c8c1c5c57c8321644ae3207ad1263c Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 11 Dec 2024 19:31:36 +0100 Subject: [PATCH] gnrc_ipv6_nib: fix misplaced assert() --- sys/net/gnrc/network_layer/ipv6/nib/_nib-router.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.c b/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.c index 76ee917483ba..0302a37d9827 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.c +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-router.c @@ -251,8 +251,8 @@ static gnrc_pktsnip_t *_build_ext_opts(gnrc_netif_t *netif, } #endif /* CONFIG_GNRC_IPV6_NIB_DNS */ if (gnrc_netif_is_6lr(netif)) { - assert(abr != NULL); #if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C) + assert(abr != NULL); uint16_t ltime_min; gnrc_pktsnip_t *abro;