4
0
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:
HubretXie 2018-09-12 10:26:46 +08:00 committed by GitHub
parent 8edb978c9a
commit e14330daf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}