4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-20 20:17:29 +08:00

git rebase commit

This commit is contained in:
NightIsDark 2021-06-30 23:01:09 +08:00 committed by guo
parent 550ad698e0
commit 247d1a50d7

View File

@ -619,6 +619,7 @@ int sal_accept(int socket, struct sockaddr *addr, socklen_t *addrlen)
LOG_E("New socket registered failed, return error %d.", retval);
return -1;
}
/* new socket create by accept should have the same netdev with server*/
new_sock->netdev = sock->netdev;
/* socket structure user_data used to store the acquired new socket */