diff options
Diffstat (limited to 'openbsc/src/osmo-bsc')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_msc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_msc.c b/openbsc/src/osmo-bsc/osmo_bsc_msc.c index 4395c3bfa..b179ff17f 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_msc.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_msc.c @@ -224,9 +224,10 @@ static void handle_ctrl(struct bsc_msc_data *msc, struct msgb *msg) { int ret; struct ctrl_cmd *cmd; + bool parse_failed; - cmd = ctrl_cmd_parse2(msc->msc_con, msg); - if (cmd->type == CTRL_TYPE_ERROR) { + cmd = ctrl_cmd_parse3(msc->msc_con, msg, &parse_failed); + if (cmd->type == CTRL_TYPE_ERROR && parse_failed) { LOGP(DMSC, LOGL_ERROR, "Failed to parse control message.\n"); ctrl_cmd_send(&msc->msc_con->write_queue, cmd); |