[asterisk-bugs] [Asterisk 0016040]: [patch] reference argument sub in handle_transfer_button after we check it

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Dec 4 10:26:43 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16040 
====================================================================== 
Reported By:                ebroad
Assigned To:                mvanbaak
====================================================================== 
Project:                    Asterisk
Issue ID:                   16040
Category:                   Channels/chan_skinny
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-07 23:56 CDT
Last Modified:              2009-12-04 10:26 CST
====================================================================== 
Summary:                    [patch] reference argument sub in
handle_transfer_button after we check it
Description: 
Currently, we reference sub before we check if it is null or not, this can
lead to a segfault if we attempt to transfer a non-existent channel.
====================================================================== 

---------------------------------------------------------------------- 
 (0114757) svnbot (reporter) - 2009-12-04 10:26
 https://issues.asterisk.org/view.php?id=16040#c114757 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 233059

U   trunk/channels/chan_skinny.c

------------------------------------------------------------------------
r233059 | mvanbaak | 2009-12-04 10:26:42 -0600 (Fri, 04 Dec 2009) | 5
lines

Only assign line and device in handle_transfer_button when we have a
subchannel.

(closes issue https://issues.asterisk.org/view.php?id=16040)
Reported by: ebroad

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

http://svn.digium.com/view/asterisk?view=rev&revision=233059 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-04 10:26 svnbot         Checkin                                      
2009-12-04 10:26 svnbot         Note Added: 0114757                          
======================================================================




More information about the asterisk-bugs mailing list