tcp: fix tcp_server_bound() function, null addr check
This commit is contained in:
parent
cfbe927b43
commit
d90bc3ebd3
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue