mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 13:24:09 -07:00
Added status debugs
This commit is contained in:
parent
0405ba1ccf
commit
8b03965912
3 changed files with 25 additions and 13 deletions
|
@ -496,10 +496,9 @@ int connect(CONNECT_SIG)
|
|||
|
||||
//int flags = fcntl(__fd, F_GETFD);
|
||||
//dwr("connect(): socket flags = %d\n", flags);
|
||||
|
||||
if(sock_type && O_NONBLOCK) {
|
||||
dwr("connect(): O_NONBLOCK\n");
|
||||
}
|
||||
//if(sock_type && O_NONBLOCK) {
|
||||
// dwr("connect(): O_NONBLOCK\n");
|
||||
//}
|
||||
|
||||
/* assemble and route command */
|
||||
int err;
|
||||
|
@ -656,6 +655,11 @@ int accept(ACCEPT_SIG)
|
|||
errno = EMFILE;
|
||||
return -1;
|
||||
}
|
||||
/* Check address length */
|
||||
if(addrlen < 0) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* make sure we don't touch any standard outputs */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue