mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-02 10:46:38 +02:00
- Some fixes with connect(). Knowing my luck this will fuck up to hell
This commit is contained in:
@@ -241,8 +241,7 @@ void scan_http_scan_port(HSStruct *z)
|
||||
*/
|
||||
set_non_blocking(fd, NULL);
|
||||
if ((retval = connect(fd, (struct sockaddr *)&sin,
|
||||
sizeof(sin))) == -1 && !((ERRNO == P_EWOULDBLOCK)
|
||||
|| (ERRNO == P_EINPROGRESS)))
|
||||
sizeof(sin))) == -1 && !(ERRNO == P_EINPROGRESS))
|
||||
{
|
||||
/* we have no socks server! */
|
||||
CLOSE_SOCK(fd);
|
||||
|
||||
@@ -223,8 +223,7 @@ void scan_socks4_scan(Scan_AddrStruct *h)
|
||||
*/
|
||||
set_non_blocking(fd, NULL);
|
||||
if ((retval = connect(fd, (struct sockaddr *)&sin,
|
||||
sizeof(sin))) == -1 && !((ERRNO == P_EWOULDBLOCK)
|
||||
|| (ERRNO == P_EINPROGRESS)))
|
||||
sizeof(sin))) == -1 && !(ERRNO == P_EWOULDBLOCK))
|
||||
{
|
||||
/* we have no socks server! */
|
||||
CLOSE_SOCK(fd);
|
||||
@@ -361,8 +360,7 @@ void scan_socks5_scan(Scan_AddrStruct *h)
|
||||
set_non_blocking(fd, NULL);
|
||||
if ((retval = connect(fd, (struct sockaddr *)&sin,
|
||||
sizeof(sin))) == -1 &&
|
||||
!((ERRNO == P_EWOULDBLOCK)
|
||||
|| (ERRNO == P_EINPROGRESS)))
|
||||
!(ERRNO == P_EINPROGRESS))
|
||||
{
|
||||
/* we have no socks server! */
|
||||
CLOSE_SOCK(fd);
|
||||
|
||||
Reference in New Issue
Block a user