diff options
| author | Bernard Xiong <[email protected]> | 2018-09-01 13:32:03 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-09-01 13:32:03 +0800 |
| commit | 11479e53bdb2c3704e4b3a66537ed37eba385075 (patch) | |
| tree | 6ccc0a8e21d3fa51d0fb1435385286b8bb728247 /components/net | |
| parent | 1b9e9a39adb3fb2f6ed4a5b281ecbb0daff4e1b9 (diff) | |
[lwIP] Fix the wait queue initialization issue.
Diffstat (limited to 'components/net')
| -rw-r--r-- | components/net/lwip-2.0.2/src/api/sockets.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/net/lwip-2.0.2/src/api/sockets.c b/components/net/lwip-2.0.2/src/api/sockets.c index 1d0fb0dd19..dc2477b611 100644 --- a/components/net/lwip-2.0.2/src/api/sockets.c +++ b/components/net/lwip-2.0.2/src/api/sockets.c @@ -410,8 +410,6 @@ lwip_tryget_socket(int s) return tryget_socket(s); } - - /** * Allocate a new socket for a given netconn. * @@ -443,6 +441,9 @@ alloc_socket(struct netconn *newconn, int accepted) sockets[i].sendevent = (NETCONNTYPE_GROUP(newconn->type) == NETCONN_TCP ? (accepted != 0) : 1); sockets[i].errevent = 0; sockets[i].err = 0; +#ifdef SAL_USING_POSIX + rt_wqueue_init(&sockets[i].wait_head); +#endif return i + LWIP_SOCKET_OFFSET; } SYS_ARCH_UNPROTECT(lev); |
