tcp: fix tcp_server_bound() function, null addr check

This commit is contained in:
Jaroslav Kysela 2015-03-03 16:02:40 +01:00
parent cfbe927b43
commit d90bc3ebd3

View file

@ -815,8 +815,8 @@ tcp_server_bound ( void *server, struct sockaddr_storage *bound )
return 0;
}
len = IP_IN_ADDRLEN(*bound);
ptr = (uint8_t *)IP_IN_ADDR(*bound);
len = IP_IN_ADDRLEN(ts->bound);
ptr = (uint8_t *)IP_IN_ADDR(ts->bound);
for (i = 0; i < len; i++)
if (ptr[0])
break;