We need to pass the error pointer in order to report proper error.
Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
src/connect.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/connect.c b/src/connect.c
index cd90939..fd335e3 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -342,7 +342,7 @@ virtDBusConnectDomainLookupByID(GVariant *inArgs,
g_variant_get(inArgs, "(u)", &id);
- if (!virtDBusConnectOpen(connect, NULL))
+ if (!virtDBusConnectOpen(connect, error))
return;
domain = virDomainLookupByID(connect->connection, id);
@@ -370,7 +370,7 @@ virtDBusConnectDomainLookupByName(GVariant *inArgs,
g_variant_get(inArgs, "(s)", &name);
- if (!virtDBusConnectOpen(connect, NULL))
+ if (!virtDBusConnectOpen(connect, error))
return;
domain = virDomainLookupByName(connect->connection, name);
@@ -398,7 +398,7 @@ virtDBusConnectDomainLookupByUUID(GVariant *inArgs,
g_variant_get(inArgs, "(s)", &uuidstr);
- if (!virtDBusConnectOpen(connect, NULL))
+ if (!virtDBusConnectOpen(connect, error))
return;
domain = virDomainLookupByUUIDString(connect->connection, uuidstr);
--
2.14.3