124ea24346
git-svn-id: svn://svn.openwrt.org/openwrt/packages@24311 3c298f89-4303-0410-b956-a3cf2f4a3e73
17 lines
478 B
Diff
17 lines
478 B
Diff
--- a/bgpd/bgp_packet.c
|
|
+++ b/bgpd/bgp_packet.c
|
|
@@ -177,10 +177,11 @@ bgp_update_packet (struct peer *peer, af
|
|
|
|
if (rn->prn)
|
|
prd = (struct prefix_rd *) &rn->prn->p;
|
|
- if (binfo && binfo->extra)
|
|
+ if (binfo)
|
|
{
|
|
- tag = binfo->extra->tag;
|
|
from = binfo->peer;
|
|
+ if (binfo->extra)
|
|
+ tag = binfo->extra->tag;
|
|
}
|
|
|
|
bgp_packet_set_marker (s, BGP_MSG_UPDATE);
|