]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Channel reload: don't reload if export is down
authorMaria Matejka <mq@ucw.cz>
Thu, 5 Oct 2023 09:36:47 +0000 (11:36 +0200)
committerMaria Matejka <mq@ucw.cz>
Thu, 5 Oct 2023 10:09:16 +0000 (12:09 +0200)
nest/proto.c

index f62d5cf210dc13b36394bae677461703ee8f9321..b6440141778fb26af37cbf88a150348572f0e2a2 100644 (file)
@@ -2731,7 +2731,7 @@ proto_cmd_reload(struct proto *p, uintptr_t _prr, int cnt UNUSED)
   /* re-exporting routes */
   if (prr->dir != CMD_RELOAD_IN)
     WALK_LIST(c, p->channels)
-      if (c->channel_state == CS_UP)
+      if ((c->channel_state == CS_UP) && (c->out_req.hook))
         if (prr->trie)
        {
          /* Increase the refeed counter */