diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-04-23 21:36:12 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-04-26 23:16:51 +0300 |
| commit | d09328e5991c9f657758921264492825e7081175 (patch) | |
| tree | a6e8d28f605cbc32ed750832d932dc1c19e440eb /lib/command.c | |
| parent | 9a92b4e75d87a5c838c2cb89b5bc8ce676cac671 (diff) | |
bgpd: fix bgp_get_vty return values
There are multiple problems:
- commit ef7c53e2 introduced a new return value 2 which broke things,
because a lot of code treats non-zero return as an error,
- there is an incorrect error returned when AS number mismatches.
This commit fixes both.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/command.c')
0 files changed, 0 insertions, 0 deletions
