summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/telnet_server.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c
index 1a907798..892ed729 100644
--- a/src/server/telnet_server.c
+++ b/src/server/telnet_server.c
@@ -624,9 +624,7 @@ int handle_telnet_port_command(struct command_context_s *cmd_ctx, char *cmd, cha
if (argc == 0)
return ERROR_OK;
- /* only if the port wasn't overwritten by cmdline */
- if (telnet_port == 0)
- telnet_port = strtoul(args[0], NULL, 0);
+ telnet_port = strtoul(args[0], NULL, 0);
return ERROR_OK;
}