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).
(cherry picked from commit 063d472f80)
This commit is contained in:
committed by
Marcelo Roberto Jimenez
parent
ee9f83c3d5
commit
28f4d398d8
@@ -728,7 +728,7 @@ static int get_miniserver_sockets(
|
||||
return UPNP_E_LISTEN;
|
||||
}
|
||||
ret_code = get_port(listenfd6, &actual_port6);
|
||||
if (ret_code <= 0) {
|
||||
if (ret_code < 0) {
|
||||
sock_close(listenfd4);
|
||||
sock_close(listenfd6);
|
||||
return UPNP_E_INTERNAL_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user