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:
parent
12d756a96b
commit
e32ab126d6
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user