提交 6f732ebb 编写于 作者: Lawlieta's avatar Lawlieta

[net][sal] fix sockfd initialize error problem

Signed-off-by: Lawlieta's avatarchenyong <1521761801@qq.com>
上级 126fa9b5
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册