From 65746643f4467da37ae6ed7033f5d5a860735271 Mon Sep 17 00:00:00 2001 From: Karel Bilek Date: Mon, 8 Aug 2016 16:39:30 +0200 Subject: [PATCH] fix msg_recv iface reporting --- extmod/modtrezormsg/modtrezormsg-unix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extmod/modtrezormsg/modtrezormsg-unix.h b/extmod/modtrezormsg/modtrezormsg-unix.h index e84f93d55f..66ad2e1623 100644 --- a/extmod/modtrezormsg/modtrezormsg-unix.h +++ b/extmod/modtrezormsg/modtrezormsg-unix.h @@ -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;