diff options
| author | 2014-03-21 20:04:42 +0100 | |
|---|---|---|
| committer | 2014-03-21 20:04:42 +0100 | |
| commit | ecb3742ef8ddbab4ffc19fe3e0edcee9b3fc6f04 (patch) | |
| tree | 93ce2f9e07b1bf18213554d5e06c73e6c2f0090f | |
| parent | 4bb1fd768ccf6dc6eda4a7af5638abca553bc673 (diff) | |
| download | libimobiledevice-ecb3742ef8ddbab4ffc19fe3e0edcee9b3fc6f04.tar.gz libimobiledevice-ecb3742ef8ddbab4ffc19fe3e0edcee9b3fc6f04.tar.bz2 | |
lockdown: Move HostID generation closer to code setting it in pair record
| -rw-r--r-- | src/lockdown.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index ab99ae2..844169a 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
| @@ -854,8 +854,6 @@ static lockdownd_error_t pair_record_generate(lockdownd_client_t client, plist_t | |||
| 854 | } | 854 | } |
| 855 | debug_info("device public key follows:\n%.*s", public_key.size, public_key.data); | 855 | debug_info("device public key follows:\n%.*s", public_key.size, public_key.data); |
| 856 | 856 | ||
| 857 | host_id = generate_uuid(); | ||
| 858 | |||
| 859 | *pair_record = plist_new_dict(); | 857 | *pair_record = plist_new_dict(); |
| 860 | 858 | ||
| 861 | userpref_error_t uret = USERPREF_E_SUCCESS; | 859 | userpref_error_t uret = USERPREF_E_SUCCESS; |
| @@ -878,6 +876,7 @@ static lockdownd_error_t pair_record_generate(lockdownd_client_t client, plist_t | |||
| 878 | plist_dict_set_item(*pair_record, USERPREF_SYSTEM_BUID_KEY, plist_new_string(system_buid)); | 876 | plist_dict_set_item(*pair_record, USERPREF_SYSTEM_BUID_KEY, plist_new_string(system_buid)); |
| 879 | 877 | ||
| 880 | /* set HostID */ | 878 | /* set HostID */ |
| 879 | host_id = generate_uuid(); | ||
| 881 | pair_record_set_host_id(*pair_record, host_id); | 880 | pair_record_set_host_id(*pair_record, host_id); |
| 882 | 881 | ||
| 883 | if (ret != LOCKDOWN_E_SUCCESS) { | 882 | if (ret != LOCKDOWN_E_SUCCESS) { |
