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,9 +2243,14 @@ 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
|
||||||
proto_apply_cmd_patt(const char *patt, void (* cmd)(struct proto *, uintptr_t, int), uintptr_t arg)
|
proto_apply_cmd_patt(const char *patt, void (* cmd)(struct proto *, uintptr_t, int), uintptr_t arg)
|
||||||
|
|
Loading…
Reference in a new issue