Closed javier-lopez closed 9 years ago
Hi, thanks for reporting, I never considered this (I'll look for some kind of monkey input tests for ncurses). It's indeed the problem (NULL pointer do exist). There is a slightly better solution: if item is NULL then we break out of the switch, this way we ignore the keystroke and "Connecting..." is never displayed. I'm doing the pull request.
great, thank you to you both
Hi, I've just keep playing with connman_curses and I found the following:
Testcase:
enter
in anethernet interface unplugged
(this also works in a wifi interface when no AP are available. connman_curses display No suitable services found for this technologyenter
. connman_curses crashes with a segmentation fault error.The backtrace display the following:
I think the problem may be than
item
is defined as a null pointer (such term exist?) at that menu. If I edit the code as follows:It doesn't crash anymore but just prints a
[INFO] Connecting...
below.