mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
qemu: hotplug: Allow passing in NULL 'tlsAlias' to qemuDomainGetTLSObjects
Some callers will not need to generate the alias again. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d23fd61836
commit
da49ff2c01
@ -1523,7 +1523,8 @@ qemuDomainGetTLSObjects(virQEMUCapsPtr qemuCaps,
|
||||
tlsProps) < 0)
|
||||
return -1;
|
||||
|
||||
if (!(*tlsAlias = qemuAliasTLSObjFromSrcAlias(srcAlias)))
|
||||
if (tlsAlias &&
|
||||
!(*tlsAlias = qemuAliasTLSObjFromSrcAlias(srcAlias)))
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user