mirror of https://gerrit.osmocom.org/libosmocore
Fix broken ctrl commands
Recent changes to libosmoctrl resulted in ctrl comands being broken because local lookup helper returned incorrect value for ROOT_NODE. Note: although this commit seems to fix it for me, I'm still not sure how the logic behind lookup function return values work. Would be nice to get it documented. Change-Id: Iddd20602047ebd9be1b668593f5dfa6f1d3e8369
This commit is contained in:
parent
33e03065a5
commit
409e897df5
|
@ -33,7 +33,8 @@ static int fsm_ctrl_node_lookup(void *data, vector vline, int *node_type,
|
||||||
goto err_missing;
|
goto err_missing;
|
||||||
*node_data = fsm;
|
*node_data = fsm;
|
||||||
*node_type = CTRL_NODE_FSM;
|
*node_type = CTRL_NODE_FSM;
|
||||||
}
|
} else
|
||||||
|
return 0;
|
||||||
break;
|
break;
|
||||||
case CTRL_NODE_FSM:
|
case CTRL_NODE_FSM:
|
||||||
fsm = *node_data;
|
fsm = *node_data;
|
||||||
|
|
Loading…
Reference in New Issue