fix msg.send()

This commit is contained in:
Jan Pochyla 2016-05-18 19:27:42 +02:00 committed by Pavol Rusnak
parent 46acb9ff2b
commit 9104d7684c
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ const uint8_t *msg_recv(void)
{
static uint8_t buf[RECV_BUFLEN];
struct sockaddr_in si;
socklen_t sl;
socklen_t sl = sizeof(si);
memset(buf, 0, sizeof(buf));
int len = recvfrom(s, buf, RECV_BUFLEN, MSG_DONTWAIT, (struct sockaddr *)&si, &sl);
if (len < 0) {