diff --git a/ChangeLog b/ChangeLog index fe13328..23bc452 100644 --- a/ChangeLog +++ b/ChangeLog @@ -221,6 +221,16 @@ Version 1.8.0 Version 1.6.8 ******************************************************************************* +2010-10-15 Marcelo Roberto Jimenez + + 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 diff --git a/upnp/src/genlib/miniserver/miniserver.c b/upnp/src/genlib/miniserver/miniserver.c index 2f2166c..350d4b1 100644 --- a/upnp/src/genlib/miniserver/miniserver.c +++ b/upnp/src/genlib/miniserver/miniserver.c @@ -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;