Skip to content
Snippets Groups Projects
Commit 8216ec30 authored by Maria Matejka's avatar Maria Matejka Committed by Maria Matejka
Browse files

There may be a symbol with NULL protocol when reconfiguring

parent 8ac20511
No related branches found
No related tags found
No related merge requests found
......@@ -2243,8 +2243,13 @@ proto_apply_cmd_symbol(const struct symbol *s, void (* cmd)(struct proto *, uint
return;
}
cmd(s->proto->proto, arg, 0);
cli_msg(0, "");
if (s->proto->proto)
{
cmd(s->proto->proto, arg, 0);
cli_msg(0, "");
}
else
cli_msg(9002, "%s does not exist", s->name);
}
static void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment