|
|
@@ -1042,6 +1042,7 @@ int totemsrp_ifaces_get (
|
|
|
int res = 0;
|
|
|
|
|
|
memset(interfaces, 0, sizeof(struct totem_ip_address) * interfaces_size);
|
|
|
+ *iface_count = INTERFACE_MAX;
|
|
|
|
|
|
if (interfaces_size >= *iface_count) {
|
|
|
memcpy (interfaces, instance->my_addrs,
|
|
|
@@ -1050,8 +1051,6 @@ int totemsrp_ifaces_get (
|
|
|
res = -2;
|
|
|
}
|
|
|
|
|
|
- *iface_count = INTERFACE_MAX;
|
|
|
-
|
|
|
totemnet_ifaces_get(instance->totemnet_context, status, iface_count);
|
|
|
return (res);
|
|
|
}
|