]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: minor fix for BGP instance shutdown.
authorDavid Schweizer <dschweizer@opensourcerouting.org>
Mon, 17 Aug 2020 10:03:27 +0000 (12:03 +0200)
committerDavid Schweizer <dschweizer@opensourcerouting.org>
Mon, 17 Aug 2020 10:03:27 +0000 (12:03 +0200)
* Fixed missing first word due to wrong start field of string
  concatenation issue.

Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
bgpd/bgp_vty.c

index 79a9a80f4f9f79c8a628c7f12e219d589322fbc8..cf6c77666671c4c136b1726bce1a2f156f1500ae 100644 (file)
@@ -3613,7 +3613,7 @@ DEFPY (bgp_shutdown,
        VTY_DECLVAR_CONTEXT(bgp, bgp);
 
        if (argc > 3)
-               msgstr = argv_concat(argv, argc, 4);
+               msgstr = argv_concat(argv, argc, 3);
 
        bgp_shutdown_enable(bgp, msgstr);
        XFREE(MTYPE_TMP, msgstr);