Bug fix in select of miniserver.c
Fix a bug in miniserver.c, in which maxMiniSock was wrongly declared as unsigned int and as a result it was beeng set to ((unsigned int)(-1)). As a result, after beeing incremented, it became zero, and this value was beeing used in the select() call. Thanks to Fabrice Fontaine for helping and testing with this issue.
This commit is contained in:
parent
923eee2393
commit
2bdc9e075e
10
ChangeLog
10
ChangeLog
@ -2,6 +2,16 @@
|
||||
Version 1.6.8
|
||||
*******************************************************************************
|
||||
|
||||
2010-10-15 Marcelo Roberto Jimenez <mroberto(at)users.sourceforge.net>
|
||||
|
||||
Bug fix in select of miniserver.c
|
||||
|
||||
Fix a bug in miniserver.c, in which maxMiniSock was wrongly declared as
|
||||
unsigned int and as a result it was beeng set to ((unsigned int)(-1)).
|
||||
As a result, after beeing incremented, it became zero, and this value
|
||||
was beeing used in the select() call.
|
||||
|
||||
Thanks to Fabrice Fontaine for helping and testing with this issue.
|
||||
|
||||
*******************************************************************************
|
||||
Version 1.6.7
|
||||
|
@ -390,7 +390,7 @@ static void RunMiniServer(
|
||||
char errorBuffer[ERROR_BUFFER_LEN];
|
||||
fd_set expSet;
|
||||
fd_set rdSet;
|
||||
unsigned int maxMiniSock;
|
||||
int maxMiniSock;
|
||||
int ret = 0;
|
||||
int stopSock = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user