Bugfixes to bind socket to device.

git-svn-id: svn://kolibrios.org@5584 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr
2015-07-20 11:13:42 +00:00
parent 2a0abd0133
commit 47d756fe2f
6 changed files with 33 additions and 2 deletions

View File

@@ -1160,7 +1160,7 @@ SOCKET_set_opt:
cmp dword[edx+8], 0
je .unbind
movzx edx, byte[edx + 9]
movzx edx, byte[edx + 12]
cmp edx, NET_DEVICES_MAX
ja .invalid
@@ -1169,7 +1169,7 @@ SOCKET_set_opt:
jz .already
mov [eax + SOCKET.device], edx
DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_set_opt: Bound socket %x to device %x\n",eax, edx
DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_set_opt: Bound socket %x to device %x\n", eax, edx
mov dword[esp+32], 0 ; success!
ret