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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user