buglwIP - A Lightweight TCP/IP stack - Bugs: bug #20903, TCP callbacks called with invalid...

 
 

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

bug #20903: TCP callbacks called with invalid conn after close

Submitted by:  Marc Boucher <marcbou>
Submitted on:  Sat 25 Aug 2007 10:11:23 PM UTC  
 
Category: TCPSeverity: 4 - Important
Item Group: Crash ErrorStatus: None
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Sun 26 Aug 2007 09:09:59 AM UTC, comment #1:

I don't have any problems with this patch.

Frédéric Bernon <fbernon>
Project Member
Sat 25 Aug 2007 10:11:23 PM UTC, original submission:

TCP callbacks in api_msg.c can under certain circumstances be called with an invalid conn pointer after the connection has been closed (and conn has been freed).

Proposed solution is to reset the callbacks and arg (conn) to NULL in do_close_internal().

Patch enclosed.

Marc Boucher <marcbou>
Project Member

 

Attached Files
file #13800:  do_close_internal.patch added by marcbou (791B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by fbernon (Posted a comment)
  • -unavailable- added by marcbou (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 26 Aug 2007 11:58:56 PM UTCmarcbouOpen/ClosedOpen=>Closed
    Sat 25 Aug 2007 10:11:23 PM UTCmarcbouAttached File-=>Added do_close_internal.patch, #13800

    Back to the top


    Powered by Savane 3.1-cleanup1