There may be a symbol with NULL protocol when reconfiguring

This commit is contained in:
Maria Matejka 2021-09-08 15:30:09 +00:00 committed by Maria Matejka
parent 8ac20511e1
commit 8216ec3027

View file

@ -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