Move the extraction of the config value so that it makes more sense
after upcoming refactors.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
return -1;
if (virConfGetValueString(conf, "nbd_tls_x509_cert_dir", &cfg->nbdTLSx509certdir) < 0)
return -1;
+ if (virConfGetValueBool(conf, "chardev_tls", &cfg->chardevTLS) < 0)
+ return -1;
#define GET_CONFIG_TLS_CERTINFO(val) \
do { \
return -1; \
} while (0)
- if (virConfGetValueBool(conf, "chardev_tls", &cfg->chardevTLS) < 0)
- return -1;
GET_CONFIG_TLS_CERTINFO(chardev);
GET_CONFIG_TLS_CERTINFO(migrate);