diff --git a/src/core/tcp.c b/src/core/tcp.c index dcd2c5ac..2ba8bb26 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -753,6 +753,7 @@ tcp_listen_with_backlog_and_err(struct tcp_pcb *pcb, u8_t backlog, err_t *err) lpcb->state = LISTEN; lpcb->prio = pcb->prio; lpcb->so_options = pcb->so_options; + lpcb->netif_idx = NETIF_NO_INDEX; lpcb->ttl = pcb->ttl; lpcb->tos = pcb->tos; #if LWIP_IPV4 && LWIP_IPV6