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; continue;
} }
if(min_log_level >= LOG_DEBUG) { if(min_log_level <= LOG_DEBUG) {
char src_net[12], src_node[18]; char src_net[12], src_node[18];
NET_TO_STRING(src_net, packet->src_net); NET_TO_STRING(src_net, packet->src_net);
NODE_TO_STRING(src_node, packet->src_node); 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); struct ipx_interface *nic = get_interfaces(ipxdata->adapternum);
if(!nic) { if(!nic) {
WSASetLastError(ERROR_NO_DATA); RETURN_WSA(ERROR_NO_DATA, -1);
return -1;
} }
memcpy(ipxdata->netnum, nic->ipx_net, 4); memcpy(ipxdata->netnum, nic->ipx_net, 4);