From 9990aa5fbb64d4b5fde8e089a4bd987a88e35dd3 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 23 Jul 2024 09:33:35 +0200 Subject: [PATCH] main: check return value of layer2_tx_fill_packet_queue() --- impl/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impl/src/main.c b/impl/src/main.c index 5b61f87..750cdf9 100644 --- a/impl/src/main.c +++ b/impl/src/main.c @@ -239,7 +239,7 @@ int main(int argc, char **argv) } // fill the TX queue from the TUN device - layer2_tx_fill_packet_queue(&l2tx); + RESULT_CHECK(layer2_tx_fill_packet_queue(&l2tx)); if((now > next_tx_switch_time) && (on_air || !layer1_rx_is_busy(&rx))) { if(layer2_tx_can_transmit(&l2tx)) {