diff options
Diffstat (limited to 'netcon/Intercept.c')
-rwxr-xr-x | netcon/Intercept.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/netcon/Intercept.c b/netcon/Intercept.c index c53c1015..d431f825 100755 --- a/netcon/Intercept.c +++ b/netcon/Intercept.c @@ -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 */ |