From: Ondrej Zajicek (work) Date: Thu, 7 Jan 2021 00:56:00 +0000 (+0100) Subject: Kernel: Do not check templates X-Git-Tag: v2.0.8~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a8cc7259e236773f1b8423ef63305a5b8bfd652;p=thirdparty%2Fbird.git Kernel: Do not check templates So one can define kernel protocol template without channels. For other protocols, it is either irrelevant or already done. Thanks to Clemens Schrimpe for the bugreport. --- diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index cccee456b..c00c660db 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -1008,6 +1008,10 @@ krt_postconfig(struct proto_config *CF) { struct krt_config *cf = (void *) CF; + /* Do not check templates at all */ + if (cf->c.class == SYM_TEMPLATE) + return; + if (EMPTY_LIST(CF->channels)) cf_error("Channel not specified");