1
0
mirror of https://github.com/solemnwarning/ipxwrapper synced 2024-12-30 16:45:37 +01:00

Fixed a deadlock.

This commit is contained in:
Daniel Collins 2012-07-22 19:29:39 +00:00
parent 999500b865
commit 97b303822d
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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);