]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - sysdep/unix/krt.c
Nest: Clean up main channel handling
[thirdparty/bird.git] / sysdep / unix / krt.c
index ceb88563f6cfa62cdeac1daaa85f2d2cdfcbd1f4..7c2614b101047c96bb7645a928e749e62942d2fd 100644 (file)
@@ -1013,7 +1013,7 @@ krt_postconfig(struct proto_config *CF)
   if (cf->c.class == SYM_TEMPLATE)
     return;
 
-  if (EMPTY_LIST(CF->channels))
+  if (! proto_cf_main_channel(CF))
     cf_error("Channel not specified");
 
 #ifdef CONFIG_ALL_TABLES_AT_ONCE