SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] Possible bug in sci_timer_expired


Chronological Thread 
  • From: "Oleg Levy" <buskila AT gmail.com>
  • To: "Michael Tuexen" <Michael.Tuexen AT micmac.franken.de>
  • Cc: discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] Possible bug in sci_timer_expired
  • Date: Tue Oct 24 19:07:59 2006
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Fhh0xMSsSM8v3sYaEDi1Xad/GnQ2Pmz3qbgdd+28qW2VCKH2EZ4ik4RmVc+sfVmbcB6zZmjiJH+tOnHXT5LBViJ12d5d3jArG+jU1PlGlWShLDZ1HwgPuGVnZJTlCpPVMHsoyL5o31KmMA9ytliS4vLVIuzK/AXgD4WH8fQpvX8=
  • List-id: SCTP Discussions <discussion.sctp.de>

Hi Michael
Thanks for the prompt response. I'll try it.
 
regards
oleg.

 
On 10/23/06, Michael Tuexen <Michael.Tuexen AT micmac.franken.de> wrote:
Hi Oleg,

I think that is a bug. Can you try the attached SCTP-control.c?

Best regards
Michael




On Oct 22, 2006, at 7:01 PM, Oleg Levy wrote:

> Hello
>
> I think there is a possible bug in the sci_timer_expired() function
> in SCTP-control.c (i'm working with version 1.0.5 of sctplib)
>
> When the timer expires, the association state is COOKIE_WAIT and
> the maximum number of retransmissions was reached, the function
> calls mdi_communicationLostNotif() to notify the upper layer. The
> upper layer calls sctp_deleteAssociation() which in turn calls
> mdi_removeAssociation() which deletes the SCTP_control instance.
>
> The sci_timer_expired() function proceeds and tries to free the
> initChunk member of the localData (which was set to the
> SCTP_control instance previously removed by sctp_deleteAssociation
> ()) and this leads to the crash.
>
> My question if it is correct to call sctp_deleteAssociation() from
> within the notification.
>
> regards
> oleg
>
>








Archive powered by MHonArc 2.6.19+.

Top of page