Pavel Hrdina b96174d9f2 domain_conf: fix NULL dereference on error in virDomainObjCopyPersistentDef
The issue was introduced together with the function itself by commit
<da1eba6bc8f58bfce34136710d1979a3a44adb17>.  Calling
`virDomainObjGetPersistentDef` may return NULL which is later passed
to `virDomainDefFormat` where the `def` attribute is marked as NONNULL
and later in `virDomainDefFormatInternalSetRootName` it is actually
defererenced without any other check.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2020-11-16 17:13:42 +01:00
..
2020-10-07 11:26:27 +02:00
2020-10-08 11:09:27 +02:00
2020-10-08 11:09:27 +02:00
2020-10-08 11:09:27 +02:00
2020-10-08 11:09:27 +02:00
2020-10-08 11:09:26 +02:00
2020-10-08 11:09:27 +02:00
2020-10-08 11:09:27 +02:00
2020-07-08 12:05:24 +02:00
2020-10-08 11:09:27 +02:00
2020-10-08 11:09:27 +02:00
2020-10-08 11:09:27 +02:00
2020-10-08 11:09:27 +02:00
2020-10-08 11:09:27 +02:00
2020-10-08 11:09:27 +02:00
2020-10-08 11:09:27 +02:00