summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_nexthop.c
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-20 17:15:37 +0200
committerpaco <paco@voltanet.io>2018-06-20 22:25:28 +0200
commita2b6e694b17303f3faf2db29254b5ea4a4ae14b1 (patch)
treece3de528becaedc5611f3b17235e915a3f5fef64 /bgpd/bgp_nexthop.c
parentMerge pull request #2459 from pacovn/Coverity_1469898_Uninitialized_scalar_va... (diff)
downloadfrr-a2b6e694b17303f3faf2db29254b5ea4a4ae14b1.tar.xz
frr-a2b6e694b17303f3faf2db29254b5ea4a4ae14b1.zip
bgpd isisd ldpd lib ospfd pimd: redundancy (infer)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'bgpd/bgp_nexthop.c')
-rw-r--r--bgpd/bgp_nexthop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c
index fd8d89487..32011d210 100644
--- a/bgpd/bgp_nexthop.c
+++ b/bgpd/bgp_nexthop.c
@@ -438,7 +438,7 @@ int bgp_subgrp_multiaccess_check_v4(struct in_addr nexthop,
struct bgp_node *rn1, *rn2;
struct peer_af *paf;
struct prefix p, np;
- struct bgp *bgp = NULL;
+ struct bgp *bgp;
np.family = AF_INET;
np.prefixlen = IPV4_MAX_BITLEN;
@@ -447,7 +447,7 @@ int bgp_subgrp_multiaccess_check_v4(struct in_addr nexthop,
p.family = AF_INET;
p.prefixlen = IPV4_MAX_BITLEN;
- rn1 = rn2 = NULL;
+ rn2 = NULL;
bgp = SUBGRP_INST(subgrp);
rn1 = bgp_node_match(bgp->connected_table[AFI_IP], &np);