mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-10 19:37:08 +01:00
InterfaceStack: fix segfault on browseInterfaceStackInst
This commit is contained in:
parent
f46d263952
commit
4ffc18c1af
1 changed files with 4 additions and 4 deletions
|
|
@ -94,10 +94,10 @@ static int create_and_link_interface_stack_instance(struct dmctx *dmctx, DMNODE
|
|||
char buf_instance[16] = {0};
|
||||
|
||||
// fill interface stack data
|
||||
intf_stack_data.higherlayer = higherlayer;
|
||||
intf_stack_data.lowerlayer = lowerlayer;
|
||||
intf_stack_data.higheralias = higheralias;
|
||||
intf_stack_data.loweralias = loweralias;
|
||||
intf_stack_data.higherlayer = higherlayer ? higherlayer : "";
|
||||
intf_stack_data.lowerlayer = lowerlayer ? lowerlayer : "";
|
||||
intf_stack_data.higheralias = higheralias ? higheralias : "";
|
||||
intf_stack_data.loweralias = loweralias ? loweralias : "";
|
||||
|
||||
// create dmmap section
|
||||
snprintf(buf_instance, sizeof(buf_instance), "%d", ++(*instance));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue