Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tcp: fix tcp_server_bound() function, null addr check
  • Loading branch information
perexg committed Mar 11, 2015
1 parent cfbe927 commit d90bc3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tcp.c
Expand Up @@ -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;
Expand Down

0 comments on commit d90bc3e

Please sign in to comment.