forked from KolibriOS/kolibrios
Bugfix in SOCKET_connect
git-svn-id: svn://kolibrios.org@4035 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a48c8ab399
commit
f39767f1f2
@ -922,10 +922,10 @@ IPv4_get_frgmnt_num:
|
||||
align 4
|
||||
IPv4_connect:
|
||||
|
||||
pusha
|
||||
push eax edx
|
||||
lea ecx, [eax + SOCKET.mutex]
|
||||
call mutex_lock
|
||||
popa
|
||||
pop edx eax
|
||||
|
||||
; Fill in local IP
|
||||
cmp [eax + IP_SOCKET.LocalIP], 0
|
||||
@ -937,8 +937,9 @@ IPv4_connect:
|
||||
pushd [edx + 4]
|
||||
pop [eax + IP_SOCKET.RemoteIP]
|
||||
|
||||
; Set up data receiving queue
|
||||
push eax
|
||||
init_queue (eax + SOCKET_QUEUE_LOCATION) ; Set up data receiving queue
|
||||
init_queue (eax + SOCKET_QUEUE_LOCATION)
|
||||
pop eax
|
||||
|
||||
lea ecx, [eax + SOCKET.mutex]
|
||||
|
@ -89,10 +89,10 @@ TCP_connect:
|
||||
test [eax + SOCKET.state], SS_ISCONNECTED
|
||||
jnz .eisconn
|
||||
|
||||
push eax
|
||||
push eax edx
|
||||
lea ecx, [eax + SOCKET.mutex]
|
||||
call mutex_lock
|
||||
pop eax
|
||||
pop edx eax
|
||||
|
||||
; Fill in local IP
|
||||
cmp [eax + IP_SOCKET.LocalIP], 0
|
||||
|
@ -327,10 +327,10 @@ UDP_connect:
|
||||
call UDP_disconnect
|
||||
@@:
|
||||
|
||||
push eax
|
||||
push eax edx
|
||||
lea ecx, [eax + SOCKET.mutex]
|
||||
call mutex_lock
|
||||
pop eax
|
||||
pop edx eax
|
||||
|
||||
; Fill in local IP
|
||||
cmp [eax + IP_SOCKET.LocalIP], 0
|
||||
|
Loading…
Reference in New Issue
Block a user