diff options
author | Clément Decoodt | 2023-03-01 10:08:56 +0100 |
---|---|---|
committer | Clément Decoodt | 2023-03-01 10:08:56 +0100 |
commit | dca3373850f5db6ecef77c99cd7c391037bc114e (patch) | |
tree | 5009b01a50e489f8000234a45f0eefb09b6e8638 /src | |
parent | e55e6e7c6cdcd7954de339be286b3818da69cddd (diff) | |
download | usbmuxd-dca3373850f5db6ecef77c99cd7c391037bc114e.tar.gz usbmuxd-dca3373850f5db6ecef77c99cd7c391037bc114e.tar.bz2 |
Fix use-after-free on get_mode_cb
Diffstat (limited to 'src')
-rw-r--r-- | src/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -683,8 +683,8 @@ static void get_mode_cb(struct libusb_transfer* transfer) if(transfer->status != LIBUSB_TRANSFER_COMPLETED) { usbmuxd_log(LL_ERROR, "Failed to request get mode for device %i-%i (%i). Completing initialization in current mode", context->bus, context->address, transfer->status); - free(context); device_complete_initialization(context, transfer->dev_handle); + free(context); return; } |