libimobiledevice/libusbmuxd — pull request #12 by aburgh (2014-06-20 09:43:55+00:00)
Title: Properly dereference record_data to check that it's set.

The original version was checking that the parameter record_data was not NULL, but this is checked at the start of the function. The patched version checks that the call to plist_data_get_val() successfully returned a new buffer.