summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index 7a7ce3f5dc..e92251160f 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1283,6 +1283,7 @@ int command_config_read_one_line(struct vty *vty,
memcpy(ve->error_buf, vty->buf, VTY_BUFSIZ);
ve->line_num = line_num;
+ ve->cmd_ret = ret;
if (!vty->error)
vty->error = list_new();