summaryrefslogtreecommitdiffstats
path: root/ripngd
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-07-02 16:53:16 +0200
committerF. Aragon <paco@voltanet.io>2018-07-02 16:53:16 +0200
commitee6f77577ca037b18108be570201f404f0a9591c (patch)
treef9b00793fe559e0f797ece5ade68ba1e29857d04 /ripngd
parentMerge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3... (diff)
downloadfrr-ee6f77577ca037b18108be570201f404f0a9591c.tar.xz
frr-ee6f77577ca037b18108be570201f404f0a9591c.zip
ripngd: variable scope overlap fix (PVS-Studio)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'ripngd')
-rw-r--r--ripngd/ripng_interface.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c
index d1057bf53..c463630b1 100644
--- a/ripngd/ripng_interface.c
+++ b/ripngd/ripng_interface.c
@@ -492,7 +492,7 @@ static int ripng_enable_network_lookup_if(struct interface *ifp)
for (ALL_LIST_ELEMENTS_RO(ifp->connected, node, connected)) {
struct prefix *p;
- struct route_node *node;
+ struct route_node *n;
p = connected->address;
@@ -501,10 +501,10 @@ static int ripng_enable_network_lookup_if(struct interface *ifp)
address.prefix = p->u.prefix6;
address.prefixlen = IPV6_MAX_BITLEN;
- node = route_node_match(ripng_enable_network,
- (struct prefix *)&address);
- if (node) {
- route_unlock_node(node);
+ n = route_node_match(ripng_enable_network,
+ (struct prefix *)&address);
+ if (n) {
+ route_unlock_node(n);
return 1;
}
}