Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
Fix for EUCA-12578
Browse files Browse the repository at this point in the history
Allocate correct memory space for managed subnets.
  • Loading branch information
mtsugawa committed Jul 18, 2016
1 parent 783d0ca commit d866b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/euca_gni.c
Original file line number Diff line number Diff line change
Expand Up @@ -2566,7 +2566,7 @@ int gni_populate_configuration(globalNetworkInfo *gni, gni_hostname_info *host_i
rc += evaluate_xpath_nodeset(ctxptr, doc, xmlnode, expression, &nodeset);
if (nodeset.nodeNr > 0) {
LOGTRACE("Found %d managed subnets\n", nodeset.nodeNr);
gni->managedSubnet = EUCA_ZALLOC_C(nodeset.nodeNr, sizeof (gni_subnet));
gni->managedSubnet = EUCA_ZALLOC_C(nodeset.nodeNr, sizeof (gni_managedsubnet));
gni->max_managedSubnets = nodeset.nodeNr;

for (j = 0; j < gni->max_managedSubnets; j++) {
Expand Down

0 comments on commit d866b44

Please sign in to comment.