|
@@ -2542,6 +2542,7 @@ __ip_vs_get_dest_entries(struct net *net, const struct ip_vs_get_dests *get,
|
|
struct ip_vs_dest *dest;
|
|
struct ip_vs_dest *dest;
|
|
struct ip_vs_dest_entry entry;
|
|
struct ip_vs_dest_entry entry;
|
|
|
|
|
|
|
|
+ memset(&entry, 0, sizeof(entry));
|
|
list_for_each_entry(dest, &svc->destinations, n_list) {
|
|
list_for_each_entry(dest, &svc->destinations, n_list) {
|
|
if (count >= get->num_dests)
|
|
if (count >= get->num_dests)
|
|
break;
|
|
break;
|