[asterisk-bugs] [Asterisk 0012580]: Fails to load if sock not specified in config

noreply at bugs.digium.com noreply at bugs.digium.com
Sun May 4 22:32:13 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12580 
====================================================================== 
Reported By:                pnlarsson
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12580
Category:                   Addons/cdr_addon_mysql
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 584 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             05-04-2008 03:50 CDT
Last Modified:              05-04-2008 22:32 CDT
====================================================================== 
Summary:                    Fails to load if sock not specified in config
Description: 
If the socket is not specified in the config file, cdr_addons_mysql will
fail to load. This is where mysql is running on the same machine. 

The patch attached solves this issue, without the patch the dbsock->str
contains (null) and then fails the ast_strlen_zero test.
====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 05-04-08 22:32  
---------------------------------------------------------------------- 
On further review, you are correct, but you missed several other places
which would cause errant results.  Fixed in tree. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-04-08 22:32  Corydon76      Note Added: 0086392                          
======================================================================




More information about the asterisk-bugs mailing list