Parcourir la source

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 il y a 14 ans
Parent
commit
25381738c2
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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);
 	}