未验证 提交 e14330da 编写于 作者: H HubretXie 提交者: GitHub

Update sal_socket.c

上级 8edb978c
...@@ -489,8 +489,7 @@ int sal_shutdown(int socket, int how) ...@@ -489,8 +489,7 @@ int sal_shutdown(int socket, int how)
if (sock->ops->shutdown((int) sock->user_data, how) == 0) if (sock->ops->shutdown((int) sock->user_data, how) == 0)
{ {
rt_free(sock); rt_free(sock);
sock = RT_NULL; socket_table.sockets[socket] = RT_NULL;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册