[asterisk-dev] [Code Review] 3591: application_name support in cdr_pgsql and res_config_pgsql

Matt Jordan reviewboard at asterisk.org
Wed Jun 18 11:10:22 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3591/#review12185
-----------------------------------------------------------



/trunk/res/res_config_pgsql.c
<https://reviewboard.asterisk.org/r/3591/#comment22240>

    Since ast_str_create can fail, you need to check if the allocation succeeded before using it:
    
    if (!conn_info) {
        /* bail */
    }


- Matt Jordan


On June 10, 2014, 2:24 a.m., doome wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3591/
> -----------------------------------------------------------
> 
> (Updated June 10, 2014, 2:24 a.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-23737
>     https://issues.asterisk.org/jira/browse/ASTERISK-23737
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> See https://issues.asterisk.org/jira/browse/ASTERISK-23737
> 
> 
> Diffs
> -----
> 
>   /trunk/res/res_config_pgsql.c 415300 
>   /trunk/configs/res_pgsql.conf.sample 415300 
>   /trunk/configs/cel_pgsql.conf.sample 415300 
>   /trunk/configs/cdr_pgsql.conf.sample 415300 
>   /trunk/cel/cel_pgsql.c 415300 
>   /trunk/cdr/cdr_pgsql.c 415300 
> 
> Diff: https://reviewboard.asterisk.org/r/3591/diff/
> 
> 
> Testing
> -------
> 
> Used asterisk with the config paramterer pgdbappname and dbappname in cdr_pgsql.conf and res_config_pgsql.conf respectively, enabled and disabled. Worked as expected.
> 
> 
> Thanks,
> 
> doome
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140618/fe3145ce/attachment.html>


More information about the asterisk-dev mailing list