]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed non-exporting protocol reload crash
authorMaria Matejka <mq@ucw.cz>
Thu, 6 Jun 2024 21:06:27 +0000 (23:06 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 12 Jun 2024 07:23:50 +0000 (09:23 +0200)
nest/proto.c

index 963edce689ddf2bb5d1c03471830c756773dc39d..0b187c1b5933c292f703aadf5340e829ae31f8d6 100644 (file)
@@ -2579,7 +2579,8 @@ proto_cmd_reload(struct proto *p, uintptr_t _prr, int cnt UNUSED)
        channel_request_reload(c, channel_create_reload_request(prr));
 
       if (prr->dir & CMD_RELOAD_OUT)
-       rt_export_refeed(&c->out_req, channel_create_reload_request(prr));
+       if (c->out_req.name)
+         rt_export_refeed(&c->out_req, channel_create_reload_request(prr));
     }
 
   cli_msg(-15, "%s: reloading", p->name);