From 676a1f48c3d819dc611c48ec7894b88b88bca15f Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Tue, 22 May 2018 14:10:06 +0200 Subject: [PATCH] hwsim: Don't crash if source radio not found We already print an error when this happens, no need to crash. --- tools/hwsim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/hwsim.c b/tools/hwsim.c index d50dec10..d26966f8 100644 --- a/tools/hwsim.c +++ b/tools/hwsim.c @@ -1171,7 +1171,8 @@ static void hwsim_frame_unref(struct hwsim_frame *frame) frame->flags |= HWSIM_TX_STAT_ACK; } - send_frame_tx_info(frame); + if (frame->src_radio) + send_frame_tx_info(frame); } l_genl_msg_unref(frame->msg);