diff options
author | 2021-07-29 03:36:29 +0200 | |
---|---|---|
committer | 2021-07-29 03:36:29 +0200 | |
commit | 6c7b50355cc5de1da1d7677e012f18efbce34237 (patch) | |
tree | 9f70fb484fd9f4c5ecc65b4f2ca4fd4732c94e65 /src/idevice.c | |
parent | 8e01e874113f430dc7a1835282ff93226863e47c (diff) | |
download | libimobiledevice-6c7b50355cc5de1da1d7677e012f18efbce34237.tar.gz libimobiledevice-6c7b50355cc5de1da1d7677e012f18efbce34237.tar.bz2 |
lockdown: Get DeviceClass to make sure OS version dependent code is executed correctly
The code in lockdownd_client_new_with_handshake would call the function
lockdownd_validate_pair based on the OS version being less than 7.0 without
taking into account that Watch OS has a different versioning scheme compared
to the other device classes. For this and any future version/device specific
checks, the code now queries the DeviceClass and stores it in the
idevice_private struct.
Diffstat (limited to 'src/idevice.c')
-rw-r--r-- | src/idevice.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/idevice.c b/src/idevice.c index 08a8b31..9d20709 100644 --- a/src/idevice.c +++ b/src/idevice.c | |||
@@ -363,6 +363,7 @@ static idevice_t idevice_from_mux_device(usbmuxd_device_info_t *muxdev) | |||
363 | device->udid = strdup(muxdev->udid); | 363 | device->udid = strdup(muxdev->udid); |
364 | device->mux_id = muxdev->handle; | 364 | device->mux_id = muxdev->handle; |
365 | device->version = 0; | 365 | device->version = 0; |
366 | device->device_class = 0; | ||
366 | switch (muxdev->conn_type) { | 367 | switch (muxdev->conn_type) { |
367 | case CONNECTION_TYPE_USB: | 368 | case CONNECTION_TYPE_USB: |
368 | device->conn_type = CONNECTION_USBMUXD; | 369 | device->conn_type = CONNECTION_USBMUXD; |