There may be a symbol with NULL protocol when reconfiguring
This commit is contained in:
parent
8ac20511e1
commit
8216ec3027
1 changed files with 7 additions and 2 deletions
|
@ -2243,8 +2243,13 @@ proto_apply_cmd_symbol(const struct symbol *s, void (* cmd)(struct proto *, uint
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (s->proto->proto)
|
||||||
|
{
|
||||||
cmd(s->proto->proto, arg, 0);
|
cmd(s->proto->proto, arg, 0);
|
||||||
cli_msg(0, "");
|
cli_msg(0, "");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
cli_msg(9002, "%s does not exist", s->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue