diff --git a/kernel/branches/net/network/socket.inc b/kernel/branches/net/network/socket.inc index ecb865cd9c..50a1d0f9ce 100644 --- a/kernel/branches/net/network/socket.inc +++ b/kernel/branches/net/network/socket.inc @@ -842,10 +842,10 @@ SOCKET_receive_tcp: mov edi, edx xor edx, edx add eax, STREAM_SOCKET.rcv - .loop: ;;;; FIXME: ecx! + .loop: + cmp [eax + RING_BUFFER.size], 0 + je .block call SOCKET_ring_read - test ecx, ecx - jz .block call SOCKET_ring_free mov [esp+32], ecx ; return number of bytes copied