Signed-off-by: Kristina Hanicova <khanicov@xxxxxxxxxx> --- src/secret/secret_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/secret/secret_driver.c b/src/secret/secret_driver.c index 6b3f0711aa..43aeae9568 100644 --- a/src/secret/secret_driver.c +++ b/src/secret/secret_driver.c @@ -220,9 +220,9 @@ secretDefineXML(virConnectPtr conn, virSecretDef *def; virObjectEvent *event = NULL; - virCheckFlags(0, NULL); + virCheckFlags(VIR_SECRET_DEFINE_VALIDATE, NULL); - if (!(def = virSecretDefParseString(xml, 0))) + if (!(def = virSecretDefParseString(xml, flags))) return NULL; if (virSecretDefineXMLEnsureACL(conn, def) < 0) -- 2.31.1