diff options
author | Martin Szulecki | 2014-03-21 20:04:42 +0100 |
---|---|---|
committer | Martin Szulecki | 2014-03-21 20:04:42 +0100 |
commit | ecb3742ef8ddbab4ffc19fe3e0edcee9b3fc6f04 (patch) | |
tree | 93ce2f9e07b1bf18213554d5e06c73e6c2f0090f /src | |
parent | 4bb1fd768ccf6dc6eda4a7af5638abca553bc673 (diff) | |
download | libimobiledevice-ecb3742ef8ddbab4ffc19fe3e0edcee9b3fc6f04.tar.gz libimobiledevice-ecb3742ef8ddbab4ffc19fe3e0edcee9b3fc6f04.tar.bz2 |
lockdown: Move HostID generation closer to code setting it in pair record
Diffstat (limited to 'src')
-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 } debug_info("device public key follows:\n%.*s", public_key.size, public_key.data); - host_id = generate_uuid(); - *pair_record = plist_new_dict(); userpref_error_t uret = USERPREF_E_SUCCESS; @@ -878,6 +876,7 @@ static lockdownd_error_t pair_record_generate(lockdownd_client_t client, plist_t plist_dict_set_item(*pair_record, USERPREF_SYSTEM_BUID_KEY, plist_new_string(system_buid)); /* set HostID */ + host_id = generate_uuid(); pair_record_set_host_id(*pair_record, host_id); if (ret != LOCKDOWN_E_SUCCESS) { |