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

SourceForge.net noreply at sourceforge.net
Tue Jan 15 17:20:27 UTC 2008


Bugs item #1869566, was opened at 2008-01-11 19:50
Message generated for change (Settings changed) made by bogdan_iancu
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: 7
Private: No
Submitted By: Carsten Bock (carstenbock)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
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