diff --git a/tests/gnrc_udp/udp.c b/tests/gnrc_udp/udp.c index f0355e2c5c..b3f544d02a 100644 --- a/tests/gnrc_udp/udp.c +++ b/tests/gnrc_udp/udp.c @@ -142,7 +142,7 @@ static void send(char *addr_str, char *port_str, char *data_len_str, unsigned in if (netif != NULL) { gnrc_pktsnip_t *netif_hdr = gnrc_netif_hdr_build(NULL, 0, NULL, 0); - if(netif == NULL) { + if (netif_hdr == NULL) { puts("Error: unable to allocate NETIF header"); gnrc_pktbuf_release(ip); return;