Skip to content

Commit

Permalink
Bugfix for issue #69
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Sanders committed Feb 22, 2021
1 parent b6ff35c commit c349322
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PREFIX = /usr/local

MAJOR = 1
MINOR = 10
REVISION = 5
REVISION = 6
LIB = libcli.so
LIB_STATIC = libcli.a

Expand Down
1 change: 1 addition & 0 deletions libcli.c
Original file line number Diff line number Diff line change
Expand Up @@ -2912,6 +2912,7 @@ static int cli_int_locate_command(struct cli_def *cli, struct cli_command *comma
// Drop out of config submode if we have matched command on MODE_CONFIG
if (again_config) {
c = again_config;
cli_set_configmode(cli, MODE_CONFIG, NULL);
goto AGAIN;
}
if (again_any) {
Expand Down
2 changes: 1 addition & 1 deletion libcli.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extern "C" {

#define LIBCLI_VERSION_MAJOR 1
#define LIBCLI_VERISON_MINOR 10
#define LIBCLI_VERISON_REVISION 5
#define LIBCLI_VERISON_REVISION 6
#define LIBCLI_VERSION ((LIBCLI_VERSION_MAJOR << 16) | (LIBCLI_VERSION_MINOR << 8) | LIBCLI_VERSION_REVISION)

#define CLI_OK 0
Expand Down
7 changes: 6 additions & 1 deletion libcli.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version: 1.10.5
Version: 1.10.6
Summary: Cisco-like telnet command-line library
Name: libcli
Release: 1
Expand Down Expand Up @@ -67,6 +67,11 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-, root, root)

%changelog
* Mon Feb 22 2021 Rob Sanders <rsanders.forcepoint.com> 1.10.6
- Fix bug when a command not found in the current mode, but is found
in the CONFIG_MODE, which would resultin an an infinate loop. Bug
reported by Stefan Mächler (github @machste).

* Wed Jan 27 2021 Gerrit Huizenga <[email protected]> 1.10.5
- Add ppc64le to travis builds

Expand Down

0 comments on commit c349322

Please sign in to comment.