libimobiledevice / libirecovery

Library and utility to talk to iBoot/iBSS via USB on Mac OS X, Windows, and Linux
https://libimobiledevice.org
GNU Lesser General Public License v2.1
550 stars 207 forks source link

get rest of device info even in dfu #103

Closed verygenericname closed 2 years ago

verygenericname commented 2 years ago

i have no idea why this was here, but removing that if statement shows that info in dfu.

nikias commented 2 years ago

Your change does not make any sense. irecv_devices_get_device_by_client can fail and then device will be NULL, resulting in a null pointer dereference (crash). So this check is very much required.