diff options
author | Nikias Bassen | 2009-01-08 18:17:21 +0100 |
---|---|---|
committer | Jonathan Beck | 2009-01-08 18:17:21 +0100 |
commit | ef98ef7211bc6277e9a87349f0405957ab264936 (patch) | |
tree | 9b51d84d1d91f27734882cbc0f27c763721e6669 /src/usbmux.c | |
parent | 5cde55426112a8cb79d809dae5f61e347c007212 (diff) | |
download | libimobiledevice-ef98ef7211bc6277e9a87349f0405957ab264936.tar.gz libimobiledevice-ef98ef7211bc6277e9a87349f0405957ab264936.tar.bz2 |
Perform proper goodby on lockdown shutdown.
Diffstat (limited to 'src/usbmux.c')
-rw-r--r-- | src/usbmux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usbmux.c b/src/usbmux.c index 770d0db..c7ac7ef 100644 --- a/src/usbmux.c +++ b/src/usbmux.c @@ -182,8 +182,11 @@ iphone_error_t iphone_mux_free_client(iphone_umux_client_t client) return IPHONE_E_INVALID_ARG; client->header->tcp_flags = 0x04; + client->header->length = htonl(0x1C); client->header->scnt = htonl(client->header->scnt); client->header->ocnt = htonl(client->header->ocnt); + client->header->window = 0; + client->header->length16 = htons(0x1C); int bytes = 0; bytes = usb_bulk_write(client->phone->device, BULKOUT, (char *) client->header, sizeof(usbmux_tcp_header), 800); |