diff options
author | Nikias Bassen | 2014-01-09 15:14:35 +0100 |
---|---|---|
committer | Nikias Bassen | 2014-01-09 15:14:35 +0100 |
commit | 96281bed0b27c8b37bbeccc8171ee5422e8306e1 (patch) | |
tree | c91c15f99e873cf4bb7e13b2f7358e445086c9d0 | |
parent | 678149cde792d30beca94ba6fc9ea20996f2febc (diff) | |
download | usbmuxd-96281bed0b27c8b37bbeccc8171ee5422e8306e1.tar.gz usbmuxd-96281bed0b27c8b37bbeccc8171ee5422e8306e1.tar.bz2 |
device: suppress "No connection for device" if TH_RST is set
-rw-r--r-- | src/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |