From f10cdce66c7c3436c7f2affe33ac179e42be92a4 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 4 Oct 2021 13:56:32 +0900 Subject: [PATCH] more fix for libccid. Signed-off-by: NIIBE Yutaka --- mcu/usb-usbip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcu/usb-usbip.c b/mcu/usb-usbip.c index 9755c0f..724ae27 100644 --- a/mcu/usb-usbip.c +++ b/mcu/usb-usbip.c @@ -252,7 +252,7 @@ attach_device (char busid[32], size_t *len_p) return (const char *)&usbip_usb_device; } -#define URB_DATA_SIZE (65544+10) +#define URB_DATA_SIZE (65544+10+2) struct usbip_msg_cmd { uint32_t devid; @@ -747,7 +747,7 @@ usbip_handle_urb (uint32_t seq) leave: msg.cmd = htonl (REP_URB_SUBMIT); - msg.seq = htonl (urb->seq); + msg.seq = htonl (seq); memset (&msg_rep, 0, sizeof (msg_rep)); msg_rep.status = htonl (r);