Skip to content

Commit

Permalink
mi_fifo: do not skip command in case of invalid
Browse files Browse the repository at this point in the history
Thanks go to Vlad Patrascu for reporting it
  • Loading branch information
razvancrainea committed Jan 10, 2019
1 parent baabbfb commit 3c573f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/mi_fifo/fifo_fnc.c
Expand Up @@ -687,8 +687,7 @@ void mi_fifo_server(FILE *fifo_stream)
/* make the command null terminated */
p[parse_len] = '\0';
memset(&request, 0, sizeof request);
if (parse_mi_request(p, parse_end, &request) < 0 ||
request.invalid) {
if (parse_mi_request(p, parse_end, &request) < 0) {
LM_ERR("cannot parse command: %.*s\n", parse_len, p);
continue;
}
Expand Down

0 comments on commit 3c573f0

Please sign in to comment.