Skip to content

imobiledevice: Check error returned by idevice_new

Kai Uwe Broulik requested to merge work/kbroulik/imobile-check-ret into master

If the device we query for isn't known, the device pointer will remain untouched according to idevice.c, and we leave it dangling.

Instead, check whether it returns IDEVICE_E_SUCCESS.

BUG: 448329

Merge request reports