[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] [lwip] Bug in lwip_recvfrom
From: |
Mumtaz Ahmad |
Subject: |
[lwip-users] [lwip] Bug in lwip_recvfrom |
Date: |
Wed, 08 Jan 2003 22:58:53 -0000 |
There is a bug in lwip_recvfrom when the number of bytes asked by the user
is less than the actual amount of data received.
The function sets sock->lastoffset to remeber the last position in the
bufer. The way it does is
sock->lastoffset = buflen - copylen;
instead it should be
sock->lastoffset = sock->lastoffset + copylen;
Mumtaz Ahmad
_o
_< \_
(_) >(_)
-------------
[This message was sent through the lwip discussion list.]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] [lwip] Bug in lwip_recvfrom,
Mumtaz Ahmad <=