mirror of
https://github.com/apache/nuttx.git
synced 2026-08-13 16:35:21 +00:00
net/devif: initialize d_len to 0 before polling connections
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
7ee8d38fda
commit
960b4bb2a7
1 changed files with 4 additions and 0 deletions
|
|
@ -647,6 +647,10 @@ static int devif_poll_connections(FAR struct net_driver_s *dev,
|
|||
{
|
||||
int bstop = false;
|
||||
|
||||
/* Reset device buffer length */
|
||||
|
||||
dev->d_len = 0;
|
||||
|
||||
/* Traverse all of the active packet connections and perform the poll
|
||||
* action.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue