mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
get_nonnull_domain: Drop useless comment
The intent of get_nonnull_domain() is not to validate virDomain as sent by the client but just to construct the virDomain structure. The validation is then done in each API when looking up the domain in our internal hash tables. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
dd2fd7d449
commit
b86c65e170
@ -7250,9 +7250,6 @@ remoteDispatchNetworkPortGetParameters(virNetServerPtr server G_GNUC_UNUSED,
|
||||
static virDomainPtr
|
||||
get_nonnull_domain(virConnectPtr conn, remote_nonnull_domain domain)
|
||||
{
|
||||
/* Should we believe the domain.id sent by the client? Maybe
|
||||
* this should be a check rather than an assignment? XXX
|
||||
*/
|
||||
return virGetDomain(conn, domain.name, BAD_CAST domain.uuid, domain.id);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user