diff options
Diffstat (limited to 'src/lockdown.c')
| -rw-r--r-- | src/lockdown.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index 087d673..4ed3d76 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
| @@ -1685,8 +1685,12 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char | |||
| 1685 | plist_dict_add_label(dict, client->label); | 1685 | plist_dict_add_label(dict, client->label); |
| 1686 | plist_dict_insert_item(dict,"Request", plist_new_string("StartService")); | 1686 | plist_dict_insert_item(dict,"Request", plist_new_string("StartService")); |
| 1687 | plist_dict_insert_item(dict,"Service", plist_new_string(identifier)); | 1687 | plist_dict_insert_item(dict,"Service", plist_new_string(identifier)); |
| 1688 | userpref_device_record_get_value(client->udid, USERPREF_ESCROW_BAG_KEY, &escrow_bag); | 1688 | |
| 1689 | plist_dict_insert_item(dict,"EscrowBag", escrow_bag); | 1689 | /* send EscrowBag if within a session */ |
| 1690 | if (client->session_id) { | ||
| 1691 | userpref_device_record_get_value(client->udid, USERPREF_ESCROW_BAG_KEY, &escrow_bag); | ||
| 1692 | plist_dict_insert_item(dict,"EscrowBag", escrow_bag); | ||
| 1693 | } | ||
| 1690 | 1694 | ||
| 1691 | /* send to device */ | 1695 | /* send to device */ |
| 1692 | ret = lockdownd_send(client, dict); | 1696 | ret = lockdownd_send(client, dict); |
