summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-08-15 19:22:48 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-08-15 19:22:48 +0000
commitaf69ec03ed780643b060e072f72c279daddf5121 (patch)
treed341521d7df57ae3b04666b074208849fe31ba32 /main
parent2a3211f8ddf1702235df5d5001b054382c569fe7 (diff)
e->data can be NULL, so use the safe version of ast_strdup()
(closes issue #13312) Reported by: pj git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@138124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 86cac5363..55b97bcac 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -3391,7 +3391,7 @@ int ast_extension_state_add(const char *context, const char *exten,
*/
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] == '_') {