From 320e5baed0ed834b26a9348dc569d58fff44d48e Mon Sep 17 00:00:00 2001 From: Christian Giese Date: Thu, 25 Feb 2021 21:21:36 +0100 Subject: [PATCH] Fix crash if control command is executed for Blaster intances without network interfaces. --- src/bbl_ctrl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bbl_ctrl.c b/src/bbl_ctrl.c index 07bd15bb..018a3fc2 100644 --- a/src/bbl_ctrl.c +++ b/src/bbl_ctrl.c @@ -990,7 +990,9 @@ bbl_ctrl_socket_job (timer_s *timer) { } } else { /* Use first interface as default. */ - key.ifindex = ctx->op.access_if[0]->addr.sll_ifindex; + if(ctx->op.access_if[0]) { + key.ifindex = ctx->op.access_if[0]->addr.sll_ifindex; + } } value = json_object_get(arguments, "outer-vlan"); if (value) {