0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 16:48:43 +00:00

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.
This commit is contained in:
Ondrej Zajicek (work) 2021-01-07 01:56:00 +01:00
parent a141959f07
commit 2a8cc7259e

View File

@ -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");