[svn-commits] tilghman: trunk r138124 - /trunk/main/pbx.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 15 14:22:49 CDT 2008


Author: tilghman
Date: Fri Aug 15 14:22:48 2008
New Revision: 138124

URL: http://svn.digium.com/view/asterisk?view=rev&rev=138124
Log:
e->data can be NULL, so use the safe version of ast_strdup()
(closes issue #13312)
 Reported by: pj

Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=138124&r1=138123&r2=138124
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Fri Aug 15 14:22:48 2008
@@ -3391,7 +3391,7 @@
 	 */
 	if (e->exten[0] == '_') {
 		ast_add_extension(e->parent->name, 0, exten, e->priority, e->label,
-			e->cidmatch, e->app, strdup(e->data), free,
+			e->cidmatch, e->app, ast_strdup(e->data), free,
 			e->registrar);
 		e = ast_hint_extension(NULL, context, exten);
 		if (!e || e->exten[0] == '_') {




More information about the svn-commits mailing list