Skip to content

Commit

Permalink
device: Fix crash caused by wrong variable when logging an error
Browse files Browse the repository at this point in the history
  • Loading branch information
gothi3 authored and nikias committed Jun 13, 2024
1 parent 360619c commit 243dedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 243dedf

Please sign in to comment.