lwIP - A Lightweight TCP/IP stack - Bugs: bug #20480, tcp_listen should check the pcb
You are not allowed to post comments on this tracker with your current authentication level.
bug #20480: tcp_listen should check the pcb
Submitter: | Simon Goldschmidt <goldsimon> | ||
Submitted: | Sat 14 Jul 2007 09:58:41 AM UTC | ||
Category: | TCP | Severity: | 3 - Normal |
Item Group: | Faulty Behaviour | Status: | Fixed |
Privacy: | Public | Assigned to: | goldsimon |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | None |
Tue 24 Jul 2007 07:43:15 AM UTC, comment #4: |
Simon Goldschmidt <goldsimon> |
Sat 14 Jul 2007 04:45:34 PM UTC, comment #3:
|
Simon Goldschmidt <goldsimon> |
Sat 14 Jul 2007 02:52:24 PM UTC, comment #2: I think we should plan that for 1.3.0, right? |
Frédéric Bernon <fbernon> |
Sat 14 Jul 2007 02:34:09 PM UTC, comment #1: Even if it doesn't seem to be a legitimate behavior, it's ok for me to add this check... I think the check should be done in a LWIP_ERROR, since it depend of the confiance each one have in his application developers... |
Frédéric Bernon <fbernon> |
Sat 14 Jul 2007 09:58:41 AM UTC, original submission:
if tcp_listen is passed a tcp_pcb that is not in state closed (so, not on tcp_bound_pcbs but on another list), this pcb will be freed and stays on the list that is is on.
|
Simon Goldschmidt <goldsimon> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2007-07-24 | goldsimon | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
2007-07-14 | goldsimon | Assigned to | None | goldsimon | |
Planned Release | 1.3.0 |
Powered by Savane 3.13-caa5.
Corresponding source code
Fixed with an LWIP_ERROR in tcp.c:tcp_listen and a check in api_msg.c:do_listen (to set the correct error value): pcb->state is checked to be CLOSED.