Major bug fix in IPv6 code.

Major bug fix in miniserver.c for IPv6, bug was introduced when
changing implementation of get_port in November 20th 2010 ("gena:fix
several compiler warnings" commit).
This commit is contained in:
Fabrice Fontaine 2011-02-07 17:50:59 +01:00 committed by Marcelo Roberto Jimenez
parent 0bbe9f62df
commit 063d472f80
2 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,14 @@
Version 1.6.11 Version 1.6.11
******************************************************************************* *******************************************************************************
2011-02-07 Fabrice Fontaine <fabrice.fontaine(at)orange-ftgroup.com>
Major bug fix in IPv6 code.
Major bug fix in miniserver.c for IPv6, bug was introduced when
changing implementation of get_port in November 20th 2010 ("gena:fix
several compiler warnings" commit).
2011-02-11 Marcelo Roberto Jimenez <mroberto(at)users.sourceforge.net> 2011-02-11 Marcelo Roberto Jimenez <mroberto(at)users.sourceforge.net>
Fix for incorrectly exported include files. Fix for incorrectly exported include files.

View File

@ -728,7 +728,7 @@ static int get_miniserver_sockets(
return UPNP_E_LISTEN; return UPNP_E_LISTEN;
} }
ret_code = get_port(listenfd6, &actual_port6); ret_code = get_port(listenfd6, &actual_port6);
if (ret_code <= 0) { if (ret_code < 0) {
sock_close(listenfd4); sock_close(listenfd4);
sock_close(listenfd6); sock_close(listenfd6);
return UPNP_E_INTERNAL_ERROR; return UPNP_E_INTERNAL_ERROR;