buglwIP - A Lightweight TCP/IP stack - Bugs: bug #47743, Closing listening tcp pcb is not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #47743: Closing listening tcp pcb is not posible without assert

Submitted by:  Jan Breuer <jan_breuer>
Submitted on:  Wed 20 Apr 2016 06:07:27 PM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Tue 26 Apr 2016 11:25:41 AM UTC, comment #1:

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Wed 20 Apr 2016 06:07:27 PM UTC, original submission:

Closing listening tcp pcb is not posible without assert.

tcp_listen_closed could not satisfy pcb->state == LISTEN

In function tcp_close_shutdown
there is section
case LISTEN:
and there is sequence
tcp_pcb_remove
tcp_listen_closed

problem is, that tcp_pcb_remove sets state to CLOSE
and after that tcp_listen_closed verifies, if state is still LISTEN and this can't be true.

I don't know internals of tcp so I can't fix this correctly.

Jan Breuer <jan_breuer>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by jan_breuer (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 26 Apr 2016 11:25:41 AM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1