summaryrefslogtreecommitdiffstats
path: root/src/usbmux.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-01-08 18:17:21 +0100
committerGravatar Matt Colyer2009-01-09 20:18:38 -0800
commit89ad220b093b73e229207ca2da0ad568d81f69e3 (patch)
treebabb6c465ad3fd021068f7a86d55845590d06bad /src/usbmux.c
parentcae85d48c44a9cf9b947a91aef6fbf7309398c4a (diff)
downloadlibimobiledevice-89ad220b093b73e229207ca2da0ad568d81f69e3.tar.gz
libimobiledevice-89ad220b093b73e229207ca2da0ad568d81f69e3.tar.bz2
Perform proper goodby on lockdown shutdown.
Diffstat (limited to 'src/usbmux.c')
-rw-r--r--src/usbmux.c3
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)
182 return IPHONE_E_INVALID_ARG; 182 return IPHONE_E_INVALID_ARG;
183 183
184 client->header->tcp_flags = 0x04; 184 client->header->tcp_flags = 0x04;
185 client->header->length = htonl(0x1C);
185 client->header->scnt = htonl(client->header->scnt); 186 client->header->scnt = htonl(client->header->scnt);
186 client->header->ocnt = htonl(client->header->ocnt); 187 client->header->ocnt = htonl(client->header->ocnt);
188 client->header->window = 0;
189 client->header->length16 = htons(0x1C);
187 int bytes = 0; 190 int bytes = 0;
188 191
189 bytes = usb_bulk_write(client->phone->device, BULKOUT, (char *) client->header, sizeof(usbmux_tcp_header), 800); 192 bytes = usb_bulk_write(client->phone->device, BULKOUT, (char *) client->header, sizeof(usbmux_tcp_header), 800);