summaryrefslogtreecommitdiffstats
path: root/src/usbmux.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-06-29 02:54:16 +0200
committerGravatar Nikias Bassen2009-06-29 02:54:16 +0200
commit96149556f89f4250621f5892a0684f96f8c7c5e5 (patch)
tree1edd4a663529d28758274cef6ca3d176a62635a2 /src/usbmux.c
parent296c7764942bc7dac55b631cf17539742b54bf59 (diff)
downloadusbmuxd-96149556f89f4250621f5892a0684f96f8c7c5e5.tar.gz
usbmuxd-96149556f89f4250621f5892a0684f96f8c7c5e5.tar.bz2
use TCP_RST instead of TCP_FIN when closing the connection so the device does not complain with messages like handleMuxTCPInput th.th_flags = 0x1, not TH_ACK(0x10)
Diffstat (limited to 'src/usbmux.c')
-rw-r--r--src/usbmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usbmux.c b/src/usbmux.c
index 927928e..d7f0710 100644
--- a/src/usbmux.c
+++ b/src/usbmux.c
@@ -771,7 +771,7 @@ int usbmux_free_client(usbmux_client_t client)
int err = 0;
int result = 0;
pthread_mutex_lock(&client->mutex);
- client->header->tcp_flags = TCP_FIN;
+ client->header->tcp_flags = TCP_RST;
client->header->length = 0x1C;
client->header->window = 0;
client->header->length16 = 0x1C;