diff options
author | Martin Szulecki | 2014-03-21 01:28:42 +0100 |
---|---|---|
committer | Martin Szulecki | 2014-03-21 01:28:42 +0100 |
commit | b5fa8eea8b41950af18db373d15115e0c900d3d4 (patch) | |
tree | 6b99e7191d5bf9ea5c69215deb84d0bfa231c48b /src | |
parent | 2ab4474d06db38a5bb87262ff6dea26ebfc618c3 (diff) | |
download | libimobiledevice-b5fa8eea8b41950af18db373d15115e0c900d3d4.tar.gz libimobiledevice-b5fa8eea8b41950af18db373d15115e0c900d3d4.tar.bz2 |
lockdown: Fix wrong pointer dereference of pair_record plist
Diffstat (limited to 'src')
-rw-r--r-- | src/lockdown.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index 59efc76..da9bbac 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -852,7 +852,7 @@ static lockdownd_error_t pair_record_generate(lockdownd_client_t client, plist_t *pair_record = plist_new_dict(); userpref_error_t uret = USERPREF_E_SUCCESS; - uret = pair_record_generate_keys_and_certs(pair_record); + uret = pair_record_generate_keys_and_certs(*pair_record); switch(uret) { case USERPREF_E_INVALID_ARG: ret = LOCKDOWN_E_INVALID_ARG; @@ -866,7 +866,7 @@ static lockdownd_error_t pair_record_generate(lockdownd_client_t client, plist_t break; } - uret = pair_record_generate_from_device_public_key(pair_record, public_key); + uret = pair_record_generate_from_device_public_key(*pair_record, public_key); switch(uret) { case USERPREF_E_INVALID_ARG: ret = LOCKDOWN_E_INVALID_ARG; @@ -883,7 +883,7 @@ static lockdownd_error_t pair_record_generate(lockdownd_client_t client, plist_t /* get systembuid and host id */ userpref_read_system_buid(&system_buid); - pair_record_set_host_id(pair_record, host_id); + pair_record_set_host_id(*pair_record, host_id); if (ret != LOCKDOWN_E_SUCCESS) { goto leave; |