TUN driver bug fix. From Max Neklyudov.

This commit is contained in:
Gregory Nutt 2015-06-03 10:45:13 -06:00
parent f4dde423c9
commit 7355a9044a

View File

@ -438,6 +438,7 @@ static void tun_receive(FAR struct tun_device_s *priv)
if (priv->dev.d_len > 0) if (priv->dev.d_len > 0)
{ {
priv->write_d_len = priv->dev.d_len; priv->write_d_len = priv->dev.d_len;
tun_transmit(priv);
} }
else else
{ {