[asterisk-bugs] [Asterisk 0015234]: [patch] If dahdi timing interface is not registered, when we try to unload res_timing_dahdi asterisk crash.

Asterisk Bug Tracker noreply at bugs.digium.com
Sat May 30 20:22:16 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15234 
====================================================================== 
Reported By:                eliel
Assigned To:                eliel
====================================================================== 
Project:                    Asterisk
Issue ID:                   15234
Category:                   Resources/res_timing_dahdi
Reproducibility:            have not tried
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 198375 
Request Review:              
====================================================================== 
Date Submitted:             2009-05-30 16:56 CDT
Last Modified:              2009-05-30 20:22 CDT
====================================================================== 
Summary:                    [patch] If dahdi timing interface is not registered,
when we try to unload res_timing_dahdi asterisk crash.
Description: 
If dahdi_test_timer() fails for some reason and the module is not properly
loaded when unloading the module asterisk crash.
====================================================================== 

---------------------------------------------------------------------- 
 (0105808) svnbot (reporter) - 2009-05-30 20:22
 https://issues.asterisk.org/view.php?id=15234#c105808 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 198437

U   trunk/res/res_timing_dahdi.c

------------------------------------------------------------------------
r198437 | eliel | 2009-05-30 20:22:15 -0500 (Sat, 30 May 2009) | 11 lines

Avoid a crash when res_timing_dahdi is unloaded but wasn't properly
loaded.

if dahdi_test_timer() fails, timing_funcs_handle remains NULL causing a
crash
when calling ast_unregister_timing_interface() with a NULL pointer.

(closes issue https://issues.asterisk.org/view.php?id=15234)
Reported by: eliel
Patches:
      timing_dahdi1.diff uploaded by eliel (license 64)


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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-30 20:22 svnbot         Checkin                                      
2009-05-30 20:22 svnbot         Note Added: 0105808                          
======================================================================




More information about the asterisk-bugs mailing list