mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-21 05:42:29 +08:00
Update sal_socket.c
This commit is contained in:
@@ -489,8 +489,7 @@ int sal_shutdown(int socket, int how)
|
||||
if (sock->ops->shutdown((int) sock->user_data, how) == 0)
|
||||
{
|
||||
rt_free(sock);
|
||||
sock = RT_NULL;
|
||||
|
||||
socket_table.sockets[socket] = RT_NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user