diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index c02d6f850208a29a21e5367834dd8dbb2b0bf886..224aec51dc05c3f5552530534c17993a25f9a8bc 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -14995,7 +14995,7 @@ virDomainDiskDefGetSecurityLabelDef(virDomainDiskDefPtr def, const char *model) return NULL; for (i = 0; i < def->nseclabels; i++) { - if (STREQ(def->seclabels[i]->model, model)) + if (STREQ_NULLABLE(def->seclabels[i]->model, model)) return def->seclabels[i]; } return NULL;