Fixes a bug in non blocking connect call
This patch fixes a bug in non blocking connect call where the sock option length for SO_ERROR was passed as 0 instead of sizeof(int).
This commit is contained in:
parent
4d21d45da7
commit
6db2271ac3
@ -2,6 +2,11 @@
|
|||||||
Version 1.6.18
|
Version 1.6.18
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2012-05-25 Anoop Mohan <anoop.anoop(at)gmail.com>
|
||||||
|
|
||||||
|
This patch fixes a bug in non blocking connect call where the sock
|
||||||
|
option length for SO_ERROR was passed as 0 instead of sizeof(int).
|
||||||
|
|
||||||
2012-04-24 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
|
2012-04-24 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
|
||||||
|
|
||||||
Disable SetGenaCallback call if device is disabled.
|
Disable SetGenaCallback call if device is disabled.
|
||||||
|
1
THANKS
1
THANKS
@ -8,6 +8,7 @@ exempt of errors.
|
|||||||
|
|
||||||
- Alex (afaucher)
|
- Alex (afaucher)
|
||||||
- Andre Sodermans (wienerschnitzel)
|
- Andre Sodermans (wienerschnitzel)
|
||||||
|
- Anoop Mohan (an00p)
|
||||||
- Anthony Viallard (homer242)
|
- Anthony Viallard (homer242)
|
||||||
- Apostolos Syropoulos
|
- Apostolos Syropoulos
|
||||||
- Arno Willig
|
- Arno Willig
|
||||||
|
@ -126,7 +126,7 @@ static int Check_Connect_And_Wait_Connection(
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
} else {
|
} else {
|
||||||
int valopt = 0;
|
int valopt = 0;
|
||||||
socklen_t len = 0;
|
socklen_t len = sizeof(valopt);
|
||||||
if (getsockopt(sock, SOL_SOCKET, SO_ERROR, (void *) &valopt, &len) < 0) {
|
if (getsockopt(sock, SOL_SOCKET, SO_ERROR, (void *) &valopt, &len) < 0) {
|
||||||
/* failed to read delayed error */
|
/* failed to read delayed error */
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user