diff options
author | Max <msuraev@sysmocom.de> | 2017-05-02 16:12:56 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-05-03 14:23:45 +0000 |
commit | 409e897df56b62b8282d54e759e2f30f0476ab12 (patch) | |
tree | 5793f8726c8e631568cb7b065ff775f2a56fa890 /src/ctrl | |
parent | 33e03065a508f1238056f36841b97d38083ac18b (diff) |
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
Diffstat (limited to 'src/ctrl')
-rw-r--r-- | src/ctrl/fsm_ctrl_commands.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ctrl/fsm_ctrl_commands.c b/src/ctrl/fsm_ctrl_commands.c index 0dfc3962..64324f2d 100644 --- a/src/ctrl/fsm_ctrl_commands.c +++ b/src/ctrl/fsm_ctrl_commands.c @@ -33,7 +33,8 @@ static int fsm_ctrl_node_lookup(void *data, vector vline, int *node_type, goto err_missing; *node_data = fsm; *node_type = CTRL_NODE_FSM; - } + } else + return 0; break; case CTRL_NODE_FSM: fsm = *node_data; |