[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #29332] lwip_select() processes readset incorrectly
From: |
Petr Cernin |
Subject: |
[lwip-devel] [bug #29332] lwip_select() processes readset incorrectly |
Date: |
Thu, 25 Mar 2010 10:31:04 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729) |
URL:
<http://savannah.nongnu.org/bugs/?29332>
Summary: lwip_select() processes readset incorrectly
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: cerninp
Submitted on: Thu 25 Mar 2010 10:31:03 AM GMT
Category: sockets
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: CVS Head
_______________________________________________________
Details:
in function lwip_selscan() in sockets.c(line 1001):
the following condition in IF statement is incorrect, parenthesis are
missing:
There is:
if (readset_in && FD_ISSET(i, readset_in) && (lastdata != NULL) || (rcvevent
> 0)) {
...
}
There should be:
if (readset_in && FD_ISSET(i, readset_in) && ((lastdata != NULL) || (rcvevent
> 0))) {
...
}
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?29332>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #29332] lwip_select() processes readset incorrectly,
Petr Cernin <=