From 8216ec3027d01b790e59a266227d378ba77a623e Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 8 Sep 2021 15:30:09 +0000 Subject: There may be a symbol with NULL protocol when reconfiguring --- nest/proto.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'nest/proto.c') diff --git a/nest/proto.c b/nest/proto.c index 31ee1fa1..7cfb1555 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 -- cgit v1.2.3