summaryrefslogtreecommitdiff
path: root/sysdep/unix/krt.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2021-01-07 01:56:00 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2021-01-07 01:56:00 +0100
commit2a8cc7259e236773f1b8423ef63305a5b8bfd652 (patch)
tree38affb0e4a0f51e87acd5cb6a0cc004cca62ecbb /sysdep/unix/krt.c
parenta141959f0729b2381a90aaa9b7ed0e41a5f9513e (diff)
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.
Diffstat (limited to 'sysdep/unix/krt.c')
-rw-r--r--sysdep/unix/krt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c
index cccee456..c00c660d 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");