This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 6fc29b6c0a9a0139e90a8505c21f8402beccc754
Author: Yongrong Wang <[email protected]>
AuthorDate: Thu Nov 6 16:50:51 2025 +0800

    vsock_sockif.c: remove the process of assgin transport in 
vsock_recv_listening
    
    The listening socket already assigns the transport to the accepted
    connection, so drop the redundant vsock_assgin_transport() call in
    vsock_recv_listening().
    
    Signed-off-by: Yongrong Wang <[email protected]>
---
 net/vsock/vsock_sockif.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/vsock/vsock_sockif.c b/net/vsock/vsock_sockif.c
index 2a2978264f0..fdf39a78d45 100644
--- a/net/vsock/vsock_sockif.c
+++ b/net/vsock/vsock_sockif.c
@@ -1227,7 +1227,8 @@ static int vsock_recv_listening(FAR struct vsock_conn_s 
*conn,
 
   vsock_addr_init(&newconn->local_addr, hdr->dst_cid, hdr->dst_port);
   vsock_addr_init(&newconn->remote_addr, hdr->src_cid, hdr->src_port);
-  ret = vsock_assgin_transport(newconn);
+  newconn->transport = t;
+  ret = circbuf_resize(&conn->rx_buf, conn->rx_buf_alloc);
   if (ret < 0)
     {
       vsock_free(newconn);

Reply via email to