]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
get_nonnull_domain: Drop useless comment
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 3 Dec 2019 17:11:32 +0000 (18:11 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 17 Dec 2019 15:58:43 +0000 (16:58 +0100)
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>
src/remote/remote_daemon_dispatch.c

index 782696f07aa5e4ffb5eba26e6052042156edf23a..9c294ddc390ce993daa8ecd9b688f73439675473 100644 (file)
@@ -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);
 }