Browse code

core: proper test of return code for add_interfaces() in case of IPv6

- report with patch by Christian K├╝hnke

Daniel-Constantin Mierla authored on 03/12/2015 12:24:40
Showing 1 changed files
... ...
@@ -1809,7 +1809,7 @@ int fix_all_socket_lists()
1809 1809
 #ifdef __OS_linux
1810 1810
 		&&  (!auto_bind_ipv6 || add_interfaces_via_netlink(0, AF_INET6, 0, PROTO_UDP, &ai_lst) == 0)
1811 1811
 #else
1812
-		&& ( !auto_bind_ipv6 || add_interfaces(0, AF_INET6, 0,  PROTO_UDP, &ai_lst) !=0 ) /* add_interface does not work for IPv6 on Linux */
1812
+		&& ( !auto_bind_ipv6 || add_interfaces(0, AF_INET6, 0,  PROTO_UDP, &ai_lst) ==0 ) /* add_interface does not work for IPv6 on Linux */
1813 1813
 #endif /* __OS_linux */
1814 1814
 			 ) && (addr_info_to_si_lst(ai_lst, 0, PROTO_UDP, 0, &udp_listen)==0)){
1815 1815
 			free_addr_info_lst(&ai_lst);