mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-08-08 09:21:48 +08:00
Address Coverity Scan defect
** CID 498359: Structurally dead code (UNREACHABLE) src/occtl/occtl.c: 639 in main() Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
This commit is contained in:
+1
-6
@@ -628,13 +628,8 @@ interactive:
|
||||
initialize_readline();
|
||||
|
||||
version();
|
||||
for (;;) {
|
||||
line = rl_gets(line);
|
||||
if (line == NULL)
|
||||
return 0;
|
||||
|
||||
while ((line = rl_gets(line)) != NULL)
|
||||
handle_cmd(conn, line, ¶ms);
|
||||
}
|
||||
|
||||
conn_close(conn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user