1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #7046 from smlng/gnrc/tcp/fix_assert

grnc, tcp: fix assert
This commit is contained in:
Sebastian Meiling 2017-05-12 11:37:29 +02:00 committed by GitHub
commit 48d06068ce
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ void gnrc_tcp_tcb_init(gnrc_tcp_tcb_t *tcb);
* @param[in] address_family Address family of @p target_addr.
* @param[in] target_addr Pointer to target address.
* @param[in] target_port Target port number.
* @param[in] local_port If zero or GNRC_TCP_PORT_UNSPEC, the connections
* @param[in] local_port If zero or PORT_UNSPEC, the connections
* source port is randomly chosen. If local_port is non-zero
* the local_port is used as source port.
*

View File

@ -237,7 +237,7 @@ int gnrc_tcp_open_passive(gnrc_tcp_tcb_t *tcb, const uint8_t address_family,
const uint8_t *local_addr, const uint16_t local_port)
{
assert(tcb != NULL);
assert(local_port != GNRC_TCP_PORT_UNSPEC);
assert(local_port != PORT_UNSPEC);
/* Check AF-Family support if local address was supplied */
if (local_addr != NULL) {