diff --git a/kernel/branches/net/applications/telnet/telnet.asm b/kernel/branches/net/applications/telnet/telnet.asm index 3b133a3257..392bbebe6e 100644 --- a/kernel/branches/net/applications/telnet/telnet.asm +++ b/kernel/branches/net/applications/telnet/telnet.asm @@ -153,7 +153,6 @@ mainloop: cmp byte [esi], 0x1b ; escape character jne .print_byte - mov byte [esi], 0 inc esi cmp word [esi], 0x485b ; move cursor to beginning @@ -169,6 +168,7 @@ mainloop: jmp .print_loop @@: + inc esi inc esi jmp .print_loop diff --git a/kernel/branches/net/network/socket.inc b/kernel/branches/net/network/socket.inc index b4306e1503..86a7cc0be8 100644 --- a/kernel/branches/net/network/socket.inc +++ b/kernel/branches/net/network/socket.inc @@ -670,7 +670,7 @@ SOCKET_close: cmp [eax + TCP_SOCKET.t_state], TCPS_SYN_RECEIVED ; state must be LISTEN, SYN_SENT or CLOSED jb .free - call TCP_output + call TCP_drop mov dword [esp+32], 0 ret