From: Maria Matejka Date: Wed, 8 Sep 2021 15:30:09 +0000 (+0000) Subject: There may be a symbol with NULL protocol when reconfiguring X-Git-Tag: 3.0-alpha0~125 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8216ec3027d01b790e59a266227d378ba77a623e;p=thirdparty%2Fbird.git There may be a symbol with NULL protocol when reconfiguring --- diff --git a/nest/proto.c b/nest/proto.c index 31ee1fa1c..7cfb1555a 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -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