]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Don't call 'virDomainDiskDefAssignAddress' when disk->dst is NULL
authorPeter Krempa <pkrempa@redhat.com>
Tue, 7 Sep 2021 07:22:42 +0000 (09:22 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 9 Sep 2021 08:17:28 +0000 (10:17 +0200)
commitcf6b34c683d29d233b44db8a2e8996995d8e9664
tree30311500a6d7f78010b09a175ff95ed992fa3167
parent002de683c6f7fb7a96d213d0fbf896f7e7a60263
conf: Don't call 'virDomainDiskDefAssignAddress' when disk->dst is NULL

The code rejecting a XML when the disk target is missing was moved to
the validation code which goes after post parse. One of the cases in the
disk post parse code didn't check whether 'disk->dst' is set which at
that point isn't guaranteed.

Fixes: 61fd7174c2afbe128ef1896198919429bcaca3d7
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2001627
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c