Commit fce7f91e authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix to previous revision.

parent df0c2e51
......@@ -3065,8 +3065,10 @@ sub SetJailIPFromVnode($$$)
my ($jailip, $jailipmask);
return -1
if ($experiment->GetVirtNodeAttribute($vnode_id, \$jailip) < 0 ||
$experiment->GetVirtNodeAttribute($vnode_id, \$jailipmask) < 0);
if ($experiment->GetVirtNodeAttribute($vnode_id,
"jailip", \$jailip) < 0 ||
$experiment->GetVirtNodeAttribute($vnode_id,
"jailipmask", \$jailipmask) < 0);
if (defined($jailip)) {
if (!defined($jailipmask)) {
......
......@@ -5121,7 +5121,8 @@ sub AllocVirtNodes($)
#
# Not sure where to put this.
#
$pnode->SetJailIPFromVnode($experiment, $virtual);
$pnode->SetJailIPFromVnode($experiment, $virtual) == 0
or return -1 if (!$self->impotent());
}
# Since we have some extra physical vnodes reserved on this pnode,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment