1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

check ownership before getting the leases.

git-svn-id: http://svn.opennebula.org/one/trunk@678 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Rubén S. Montero 2009-07-13 14:00:48 +00:00
parent 12d756a96b
commit e32ab126d6

View File

@ -667,6 +667,12 @@ int VirtualMachine::get_network_leases()
return -1;
}
if ( vn->get_uid() != uid)
{
return -1;
}
ip = nic->vector_value("IP");
if (ip.empty())