Initialise the sdbus connection
Resolves openbmc/openbmc#2128
Change-Id: If2927d14adb3a9332b2a2ea595b57bd4b34671bc
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/chassishandler.cpp b/chassishandler.cpp
index f81c2bf..e9980fb 100644
--- a/chassishandler.cpp
+++ b/chassishandler.cpp
@@ -958,6 +958,8 @@
*data_len = 4;
+ bus = ipmid_get_sd_bus_connection();
+
r = mapper_get_service(bus, objname, &busname);
if (r < 0) {
fprintf(stderr, "Failed to get bus name, return value: %s.\n", strerror(-r));