net/devif: initialize d_len to 0 before polling connections

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-12-07 22:09:10 +08:00 committed by Xiang Xiao
parent 7ee8d38fda
commit 960b4bb2a7

View file

@ -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.
*/