]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Bug 6957 - variable names beginning with CALLERID weren't substituted correctly
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 13 Apr 2006 15:56:35 +0000 (15:56 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 13 Apr 2006 15:56:35 +0000 (15:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@19768 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index 96707fad64f650777778c259ea22762c80d7cd70..9ef1c1936e2dc5c89c7bb690f94f7643c91d512d 100644 (file)
--- 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) {