summaryrefslogtreecommitdiffstats
path: root/src/house_arrest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/house_arrest.c')
-rw-r--r--src/house_arrest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/house_arrest.c b/src/house_arrest.c
index e0d7771..ec76346 100644
--- a/src/house_arrest.c
+++ b/src/house_arrest.c
@@ -105,7 +105,7 @@ house_arrest_error_t house_arrest_client_free(house_arrest_client_t client)
105 return HOUSE_ARREST_E_INVALID_ARG; 105 return HOUSE_ARREST_E_INVALID_ARG;
106 106
107 house_arrest_error_t err = HOUSE_ARREST_E_SUCCESS; 107 house_arrest_error_t err = HOUSE_ARREST_E_SUCCESS;
108 if (client->parent && client->parent->connection) { 108 if (client->parent && client->parent->parent->connection) {
109 house_arrest_error(property_list_service_client_free(client->parent)); 109 house_arrest_error(property_list_service_client_free(client->parent));
110 } 110 }
111 client->parent = NULL; 111 client->parent = NULL;
@@ -242,7 +242,7 @@ afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t client
242 if (!client || !client->parent || (client->mode == HOUSE_ARREST_CLIENT_MODE_AFC)) { 242 if (!client || !client->parent || (client->mode == HOUSE_ARREST_CLIENT_MODE_AFC)) {
243 return AFC_E_INVALID_ARG; 243 return AFC_E_INVALID_ARG;
244 } 244 }
245 afc_error_t err = afc_client_new_from_connection(client->parent->connection, afc_client); 245 afc_error_t err = afc_client_new_with_service_client(client->parent->parent, afc_client);
246 if (err == AFC_E_SUCCESS) { 246 if (err == AFC_E_SUCCESS) {
247 client->mode = HOUSE_ARREST_CLIENT_MODE_AFC; 247 client->mode = HOUSE_ARREST_CLIENT_MODE_AFC;
248 } 248 }