aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-29 14:23:49 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-29 14:23:49 +0000
commit0eb65f87ea195ff4fc8920727893519374d49366 (patch)
tree70246f0d9d4271c71f89a3d97bf3b73c24a3cf7e /main
parentf59eb98821f88a4108c78b2853b0cca75ad8caf2 (diff)
Fix issue with ast_unescape_semicolon going into an endless loop.
(closes issue #10550) Reported by: ramonpeek Patches: unescape-85177-1.patch uploaded by IgorG (license 20) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@87294 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/utils.c b/main/utils.c
index fe9ee3cff..53f7bdfd2 100644
--- a/main/utils.c
+++ b/main/utils.c
@@ -942,6 +942,8 @@ char *ast_unescape_semicolon(char *s)
if ((e > work) && (*(e-1) == '\\')) {
memmove(e - 1, e, strlen(e) + 1);
work = e;
+ } else {
+ work = e + 1;
}
}