summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Imre Ehreth2024-06-13 11:23:35 +0200
committerGravatar Nikias Bassen2024-06-13 12:21:33 +0200
commit243dedf14357b097aa638ce4e02dde48133a52ef (patch)
tree6be1c785a702e50533d1414f03d23053945b732a
parent360619c5f721f93f0b9d8af1a2df0b926fbcf281 (diff)
downloadusbmuxd-243dedf14357b097aa638ce4e02dde48133a52ef.tar.gz
usbmuxd-243dedf14357b097aa638ce4e02dde48133a52ef.tar.bz2
device: Fix crash caused by wrong variable when logging an error
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 0928021..ce73718 100644
--- a/src/device.c
+++ b/src/device.c
@@ -661,7 +661,7 @@ static void device_tcp_input(struct mux_device *dev, struct tcphdr *th, unsigned
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);
+ usbmuxd_log(LL_ERROR, "Error sending TCP RST to device %d (%d->%d)", dev->id, sport, dport);
}
return;
}