summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 0203f3647d..5cc4a4f7e1 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -1018,7 +1018,7 @@ bgp_maxpaths_config_vty (struct vty *vty, int peer_type, const char *mpaths,
if (set)
{
- strtol(mpaths, NULL, 10);
+ maxpaths = strtol(mpaths, NULL, 10);
ret = bgp_maximum_paths_set (bgp, afi, safi, peer_type, maxpaths, options);
}
else