fix msg_recv iface reporting

This commit is contained in:
Karel Bilek 2016-08-08 16:39:30 +02:00 committed by Pavol Rusnak
parent 312859ba71
commit 65746643f4
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 1 additions and 1 deletions

View File

@ -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;