Summary:ASTERISK-02887: Non-existant channel type to chan_features crashes Asterisk.
Reporter:Joshua C. Colp (jcolp)Labels:
Date Opened:2004-11-24 22:16:00.000-0600Date Closed:2008-01-15 15:14:54.000-0600
Versions:Frequency of
Environment:Attachments:( 0) chan_features.diff.txt
Description:If you send chan_features an invalid/non-existant channel type Asterisk will segmentation fault. This is caused by a wrong assumption in features_request that a pointer was returned to a new structure, even if it was not. The patch below fixes this by checking to make sure it is not NULL before dealing with it. I disclaim this patch to Digium as usual, my disclaimer has been faxed in.
Comments:By: Mark Spencer (markster) 2004-11-24 22:20:00.000-0600

Thanks, chan_features is not at all production ready yet.

By: Digium Subversion (svnbot) 2008-01-15 15:14:54.000-0600

Repository: asterisk
Revision: 4331

U   trunk/channels/chan_features.c

r4331 | markster | 2008-01-15 15:14:53 -0600 (Tue, 15 Jan 2008) | 2 lines

Small chan_features patch (bug ASTERISK-2887)