mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 19:38:09 +00:00
fix msg_recv iface reporting
This commit is contained in:
parent
312859ba71
commit
65746643f4
@ -41,7 +41,7 @@ ssize_t msg_recv(uint8_t *iface, uint8_t *buf, size_t len)
|
||||
struct sockaddr_in si;
|
||||
socklen_t sl = sizeof(si);
|
||||
memset(buf, 0, len);
|
||||
iface = 0; // UDP uses always interface 0
|
||||
*iface = 0; // UDP uses always interface 0
|
||||
ssize_t r = recvfrom(s, buf, len, MSG_DONTWAIT, (struct sockaddr *)&si, &sl);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
|
Loading…
Reference in New Issue
Block a user