[asterisk-bugs] [Asterisk 0011387]: Loading of res_config_pgsql will crash on dbhost/dbsock combination

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Nov 27 17:33:37 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11387 
====================================================================== 
Reported By:                xrg
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11387
Category:                   Resources/res_config_pgsql
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.14  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-27-2007 11:56 CST
Last Modified:              11-27-2007 17:33 CST
====================================================================== 
Summary:                    Loading of res_config_pgsql will crash on
dbhost/dbsock combination
Description: 
A trivial logic error exists wrt. res_pgsql.conf parsing:
When dbhost is not set, conditional will try to copy "s" which may have
been NULL (when dbport=NULL)!




====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 11-27-07 17:33  
---------------------------------------------------------------------- 
As trivial a change as this is, we cannot accept code contributions unless
you have signed the license agreement.

Also, please upload patches as attachments as per the bug guidelines.
Thanks! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-27-07 17:33  putnopvut      Note Added: 0074450                          
======================================================================




More information about the asterisk-bugs mailing list