chiark / gitweb /
bus: unify credential query code in driverd
[elogind.git] / src / libsystemd-bus / bus-objects.c
index 5aa83a44262c4952156b1c254b3e13dde5e20a06..c3889b794948b9486d82542c476448f3f8744470 100644 (file)
@@ -831,7 +831,7 @@ static int process_introspect(
         if (bus->nodes_modified)
                 return 0;
 
-        r = introspect_begin(&intro);
+        r = introspect_begin(&intro, bus->trusted);
         if (r < 0)
                 return r;
 
@@ -1379,7 +1379,7 @@ static struct node *bus_node_allocate(sd_bus *bus, const char *path) {
         n->path = s;
         s = NULL; /* do not free */
 
-        r = hashmap_put(bus->nodes, s, n);
+        r = hashmap_put(bus->nodes, n->path, n);
         if (r < 0) {
                 free(n->path);
                 free(n);