From 96149556f89f4250621f5892a0684f96f8c7c5e5 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 29 Jun 2009 02:54:16 +0200 Subject: 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) --- src/usbmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1-32-gdbae