]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
L3VPN: Fix bug in reconfiguration
authorOndrej Zajicek <santiago@crfreenet.org>
Sat, 23 Sep 2023 22:24:50 +0000 (00:24 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 4 Oct 2023 11:12:05 +0000 (13:12 +0200)
Fields import_target / export_target link to config structures, must be
updated during reconfiguration.

proto/l3vpn/l3vpn.c

index 3bf0df48c082d77871b98ab838ba2a1131b7d331..38441208713c625d73c73941041dd90eae66f898 100644 (file)
@@ -431,6 +431,10 @@ l3vpn_reconfigure(struct proto *P, struct proto_config *CF)
   }
   */
 
+  /* Update pointers to config structures */
+  p->import_target = cf->import_target;
+  p->export_target = cf->export_target;
+
   proto_setup_mpls_map(P, RTS_L3VPN, 1);
 
   return 1;