mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-20 21:37:22 +08:00
Update sal_socket.c
This commit is contained in:
parent
8edb978c9a
commit
e14330daf9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user