aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-13 15:56:35 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-13 15:56:35 +0000
commit1000dfb3dbcd28d170805feeec74881c79ac8438 (patch)
treedbd17c8f6566ce722dfe8f56e792ec5b0b741eda /pbx.c
parent0276181d7a3e2a35d974ce5046973bd5b337c2c2 (diff)
Bug 6957 - variable names beginning with CALLERID weren't substituted correctly
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@19768 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index 96707fad6..9ef1c1936 100644
--- a/pbx.c
+++ b/pbx.c
@@ -1023,7 +1023,8 @@ void pbx_retrieve_variable(struct ast_channel *c, const char *var, char **ret, c
*ret = workspace;
} else
*ret = NULL;
- }
+ } else
+ goto icky;
} else if (!strcmp(var + 6, "ANI")) {
/* CALLERANI */
if (c->cid.cid_ani) {