Browse Source

Fix wrong command persisted by vtysh

Fixes invalid syntax when applying integrated configuration a file
with vtysh -b.

Commit d8aa4beab72cdd2c2d78f9e624fd4b704eec488f ("vtysh: Fix Quagga.conf file read in.")
replaced NULL cmd argument but only in one instance of the cmd_execute_command_strict
call. This patch fixes the second instance.
Alban Browaeys 3 years ago
parent
commit
c1d777f355
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/command.c

+ 1 - 1
lib/command.c

@@ -2812,7 +2812,7 @@ command_config_read_one_line (struct vty *vty, struct cmd_element **cmd, int use
 	 ret != CMD_SUCCESS && ret != CMD_WARNING &&
 	 ret != CMD_ERR_NOTHING_TODO && vty->node != CONFIG_NODE) {
     vty->node = node_parent(vty->node);
-    ret = cmd_execute_command_strict (vline, vty, NULL);
+    ret = cmd_execute_command_strict (vline, vty, cmd);
   }
 
   // If climbing the tree did not work then ignore the command and