From 96281bed0b27c8b37bbeccc8171ee5422e8306e1 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 9 Jan 2014 15:14:35 +0100 Subject: device: suppress "No connection for device" if TH_RST is set --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index 0844499..28c0893 100644 --- a/src/device.c +++ b/src/device.c @@ -503,8 +503,8 @@ static void device_tcp_input(struct mux_device *dev, struct tcphdr *th, unsigned } ENDFOREACH if(!conn) { - usbmuxd_log(LL_INFO, "No connection for device %d incoming packet %d->%d", dev->id, dport, sport); if(!(th->th_flags & TH_RST)) { + usbmuxd_log(LL_INFO, "No connection for device %d incoming packet %d->%d", dev->id, dport, sport); if(send_anon_rst(dev, sport, dport, ntohl(th->th_seq)) < 0) usbmuxd_log(LL_ERROR, "Error sending TCP RST to device %d (%d->%d)", conn->dev->id, sport, dport); } -- cgit v1.1-32-gdbae