mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
Fixed a deadlock.
This commit is contained in:
parent
999500b865
commit
97b303822d
@ -277,7 +277,7 @@ DWORD router_main(void *arg) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if(min_log_level >= LOG_DEBUG) {
|
||||
if(min_log_level <= LOG_DEBUG) {
|
||||
char src_net[12], src_node[18];
|
||||
NET_TO_STRING(src_net, packet->src_net);
|
||||
NODE_TO_STRING(src_node, packet->src_node);
|
||||
|
@ -523,8 +523,7 @@ int WSAAPI getsockopt(SOCKET fd, int level, int optname, char FAR *optval, int F
|
||||
struct ipx_interface *nic = get_interfaces(ipxdata->adapternum);
|
||||
|
||||
if(!nic) {
|
||||
WSASetLastError(ERROR_NO_DATA);
|
||||
return -1;
|
||||
RETURN_WSA(ERROR_NO_DATA, -1);
|
||||
}
|
||||
|
||||
memcpy(ipxdata->netnum, nic->ipx_net, 4);
|
||||
|
Loading…
x
Reference in New Issue
Block a user