SCTP Discussions

Text archives Help


[SCTP-Discussion] Crash in sctplib


Chronological Thread 
  • From: "Oleg Levy" <buskila AT gmail.com>
  • To: discussion AT sctp.de
  • Subject: [SCTP-Discussion] Crash in sctplib
  • Date: Mon Mar 13 13:12:02 2006
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=nAoig7g84oZqNFHqtZy23amPBfoZ2kmrhL3iC4d7sEeilqHdQT2D1JAlMRjK39esrF8AVepFhUPl7yKKtz72ZqLP7bg8iPGqh+HJFlr1Eahj/BQ1e5eLJtHoFpFRuKB6kC1rw0AdI16dLMWVqLSOlkvM++z21D64bvOsUD1lGK8=
  • List-id: SCTP Discussions <discussion.sctp.de>

Hello
 
I'm receiving a crash in the "se_deliver_unreliably" function in streamengine.c:
 

while((tmp != NULL) && (((delivery_data*)(tmp->data))->tsn <= up_to_tsn))

{

d_chunk = (delivery_data*)(tmp->data);

g_list_remove (se->List, d_chunk);

sctp_free(d_chunk);

tmp = g_list_first(se->List); <<THE CRASH IS HERE

}

There are two questions:

1) Shouldn't the "g_list_remove (se->List, d_chunk);" line be changed to "se->List = g_list_remove (se->List, d_chunk);"?

2) How well the PRSCTP code is debugged?

 

Thanks

oleg




Archive powered by MHonArc 2.6.19+.

Top of page