Skip to content

Commit 54c0fe1

Browse files
authored
Merge pull request #70 from RobSanders/libcli_1_10_6_staging
V1.10.6 staging - has bugfix for issue #69
2 parents b6ff35c + c349322 commit 54c0fe1

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PREFIX = /usr/local
1111

1212
MAJOR = 1
1313
MINOR = 10
14-
REVISION = 5
14+
REVISION = 6
1515
LIB = libcli.so
1616
LIB_STATIC = libcli.a
1717

libcli.c

+1
Original file line numberDiff line numberDiff line change
@@ -2912,6 +2912,7 @@ static int cli_int_locate_command(struct cli_def *cli, struct cli_command *comma
29122912
// Drop out of config submode if we have matched command on MODE_CONFIG
29132913
if (again_config) {
29142914
c = again_config;
2915+
cli_set_configmode(cli, MODE_CONFIG, NULL);
29152916
goto AGAIN;
29162917
}
29172918
if (again_any) {

libcli.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern "C" {
1313

1414
#define LIBCLI_VERSION_MAJOR 1
1515
#define LIBCLI_VERISON_MINOR 10
16-
#define LIBCLI_VERISON_REVISION 5
16+
#define LIBCLI_VERISON_REVISION 6
1717
#define LIBCLI_VERSION ((LIBCLI_VERSION_MAJOR << 16) | (LIBCLI_VERSION_MINOR << 8) | LIBCLI_VERSION_REVISION)
1818

1919
#define CLI_OK 0

libcli.spec

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version: 1.10.5
1+
Version: 1.10.6
22
Summary: Cisco-like telnet command-line library
33
Name: libcli
44
Release: 1
@@ -67,6 +67,11 @@ rm -rf $RPM_BUILD_ROOT
6767
%defattr(-, root, root)
6868

6969
%changelog
70+
* Mon Feb 22 2021 Rob Sanders <rsanders.forcepoint.com> 1.10.6
71+
- Fix bug when a command not found in the current mode, but is found
72+
in the CONFIG_MODE, which would resultin an an infinate loop. Bug
73+
reported by Stefan Mächler (github @machste).
74+
7075
* Wed Jan 27 2021 Gerrit Huizenga <[email protected]> 1.10.5
7176
- Add ppc64le to travis builds
7277

0 commit comments

Comments
 (0)