Skip to content

Endless Loop During Command Search #69

@machste

Description

@machste

Hi all,

I found the following issue with the libcli. Entering a mode and issuing the same command by mistake, causes the main loop to hang forever. This can be simply reproduced with the test program, as shown below:

$ telnet 127.0.0.1 8000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
libcli test environment

Username: fred
Password:  

router> enable
Password: 
router# configure terminal 

router(config)# interface test0/0

router(config-test)# interface

At this point, the CLI hangs and won't return a prompt.

I did some research by myself and think there's something wrong here:

libcli/libcli.c

Line 2913 in b6ff35c

if (again_config) {

As a workaround, I removed this check and it works for me so far.

Best regards,
Stefan Mächler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions