Skip to content
Success

Changes

Summary

  1. vty: assert in optional param followed by optional-multi-choice param: (details)
Commit 2e41c4301ece14cbd9d22896a079619ba080200a by Pau Espin Pedrol
vty: assert in optional param followed by optional-multi-choice param: Fix [2/2]

in cmd_make_descr, cp during the asserting iteration looks like this:
(gdb) print cp
$18 = 0x555555c1939d ") [(one|two|three)"

As a result, first multiple is set to 0 and later on logic was missing
for this specific case.

Change-Id: I4c184db53bec28ab42bcd45e033733d850eea5d2
Fixes: b55f4d2df21b966c3953264d8961f259814f4650
Related: OS#6360
The file was modifiedsrc/vty/command.c