Issue information

Issue ID
#17
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Sep 6, 2007 6:30
Last Post
Hercules Elf Bot
Mar 15, 2012 13:07
Confirmation
N/A

Hercules Elf Bot - Sep 6, 2007 6:30

Originally posted by [b]theultramage[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=17

This is how the execution path looks like when you enable 'console'.
CODE
start_console();
opens the connection using session fd 0.
CODE
check_connect_login_port()
checks whether login_fd (at startup defaults to 0) is active and if it isn't, opens the listening socket. But since 0 is active already, it just exits without doing anything.

I think the problem is accessing uninitialized data
CODE
int login_fd;
...
if( !session_isActive(login_fd) )
I think it should be initialized to -1, as similar variables do in charserver/mapserver.