mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 05:37:04 +08:00
Merge pull request #2609 from Lawlieta/develop
[net][sal] fix sockfd initialize error problem
This commit is contained in:
commit
ec0cb1e1e7
@ -139,7 +139,7 @@ static void check_netdev_internet_up_work(struct rt_work *work, void *work_data)
|
||||
#define SAL_INTERNET_MONTH_LEN 4
|
||||
#define SAL_INTERNET_DATE_LEN 16
|
||||
|
||||
int index, sockfd = 0, result = 0;
|
||||
int index, sockfd = -1, result = 0;
|
||||
struct sockaddr_in server_addr;
|
||||
struct hostent *host;
|
||||
struct timeval timeout;
|
||||
|
Loading…
x
Reference in New Issue
Block a user