[OpenSER-Devel] [ openser-Bugs-1869566 ] [dialog] MI-command dlg_list fails on empty list

SourceForge.net noreply at sourceforge.net
Fri Jan 11 17:50:48 UTC 2008


Bugs item #1869566, was opened at 2008-01-11 17:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1869566&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Carsten Bock (carstenbock)
Assigned to: Nobody/Anonymous (nobody)
Summary: [dialog] MI-command dlg_list fails on empty list

Initial Comment:
Hi,

i found an tiny bug in MI-command "dlg_list" of the dialog module: It crashes OpenSER, if the list is empty. Attached patch fixes the issue.
Although the attached patch looks huge, it's mainly because of indentation. Actually, the only change is that i added the following line:

if (d_table->entries[i].first) {

The first dialog is empty (null) if the list is empty.
On our systems, the crash only appeared when creating debian-packages (for sarge), but not when compiled "by hand".

Carsten

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1869566&group_id=139143



More information about the Devel mailing list