1
0
mirror of https://github.com/rtbrick/bngblaster.git synced 2024-05-06 15:54:57 +00:00

Fix crash if control command is executed for

Blaster intances without network interfaces.
This commit is contained in:
Christian Giese
2021-02-25 21:21:36 +01:00
parent 8a48165601
commit 320e5baed0

View File

@ -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) {