Commit 8216ec30 authored by Maria Matejka's avatar Maria Matejka Committed by Maria Matejka
Browse files

There may be a symbol with NULL protocol when reconfiguring

parent 8ac20511
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -2243,9 +2243,14 @@ proto_apply_cmd_symbol(const struct symbol *s, void (* cmd)(struct proto *, uint
    return;
  }

  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
proto_apply_cmd_patt(const char *patt, void (* cmd)(struct proto *, uintptr_t, int), uintptr_t arg)