[asterisk-dev] oej: trunk r242043 - /trunk/main/acl.c

Russell Bryant russell at digium.com
Thu Jan 21 16:43:47 CST 2010


Please, always, at an absolute minimum, run the "make" test before committing into one of the main branches.  :-(

--
Russell Bryant
Digium, Inc. | Engineering Manager, Open Source Software
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org

----- "SVN commits to the Digium repositories" <svn-commits at lists.digium.com> wrote:

> Author: oej
> Date: Thu Jan 21 15:05:56 2010
> New Revision: 242043
> 
> URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=242043
> Log:
> Make sure we initialize the ast_ha structure with ast_calloc
> 
> Modified:
>     trunk/main/acl.c
> 
> Modified: trunk/main/acl.c
> URL:
> http://svnview.digium.com/svn/asterisk/trunk/main/acl.c?view=diff&rev=242043&r1=242042&r2=242043
> ==============================================================================
> --- trunk/main/acl.c (original)
> +++ trunk/main/acl.c Thu Jan 21 15:05:56 2010
> @@ -237,7 +237,7 @@
>  {
>  	struct ast_ha *new_ha;
>  
> -	if ((new_ha = ast_malloc(sizeof(*new_ha)))) {
> +	if ((new_ha = ast_calloc(sizeof(*new_ha)))) {
>  		/* Copy from original to new object */
>  		ast_copy_ha(original, new_ha);
>  	}
> @@ -284,7 +284,7 @@
>  		path = path->next;
>  	}
>  
> -	if (!(ha = ast_malloc(sizeof(*ha)))) {
> +	if (!(ha = ast_calloc(sizeof(*ha)))) {
>  		return ret;
>  	}
>  
> 
> 
> -- 
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> svn-commits mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/svn-commits



More information about the asterisk-dev mailing list