diff --git a/profiles/sap/server.c b/profiles/sap/server.c index 9a7cb7269..cbe00b97a 100644 --- a/profiles/sap/server.c +++ b/profiles/sap/server.c @@ -1294,7 +1294,8 @@ static DBusMessage *disconnect(DBusConnection *conn, DBusMessage *msg, static DBusMessage *get_properties(DBusConnection *c, DBusMessage *msg, void *data) { - struct sap_connection *conn = data; + struct sap_server *server = data; + struct sap_connection *conn = server->conn; DBusMessage *reply; DBusMessageIter iter; DBusMessageIter dict;