Przeglądaj źródła

Always set interface_up in totemip_iface_check

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse 14 lat temu
rodzic
commit
25381738c2
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      exec/totemip.c

+ 3 - 0
exec/totemip.c

@@ -538,6 +538,9 @@ int totemip_iface_check(struct totem_ip_address *bindnet,
 	socklen_t si;
 	int res = -1;
 
+	*interface_up = 0;
+	*interface_num = 0;
+
 	if (totemip_getifaddrs(&addrs) == -1) {
 		return (-1);
 	}