diff --git a/kernel-src/io/net/tcp.c b/kernel-src/io/net/tcp.c index b45a2688..1578cbe7 100644 --- a/kernel-src/io/net/tcp.c +++ b/kernel-src/io/net/tcp.c @@ -984,6 +984,7 @@ __attribute__((noreturn)) static void tcp_worker() { newtcb->rcvwindow = TCB_RINGBUFFER_SIZE; newtcb->rcvurgent = 0; newtcb->irs = tcpheader->seq; + newtcb->port = tcb->port; // add tcb to the connection table if (tcbset(newtcb, &key, false)) {