mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-30 02:51:33 +08:00
commit
d3ce0b27ff
@ -924,6 +924,7 @@ int sal_socket(int domain, int type, int protocol)
|
||||
sock = sal_get_socket(socket);
|
||||
if (sock == RT_NULL)
|
||||
{
|
||||
socket_delete(socket);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -956,7 +957,7 @@ int sal_socket(int domain, int type, int protocol)
|
||||
sock->user_data = (void *) proto_socket;
|
||||
return sock->socket;
|
||||
}
|
||||
|
||||
socket_delete(socket);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user