return mistakenly removed code.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7944 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
3474b1412a
commit
32bf92fb01
|
@ -285,6 +285,7 @@ static void parse_rr(const struct dns_parse *p, enum_query_t * q, struct dns_rr
|
|||
char *service = NULL;
|
||||
char *regex = NULL;
|
||||
char *replace = NULL;
|
||||
char *ptr;
|
||||
int argc = 0;
|
||||
char *argv[4] = { 0 };
|
||||
int n;
|
||||
|
@ -333,6 +334,12 @@ static void parse_rr(const struct dns_parse *p, enum_query_t * q, struct dns_rr
|
|||
goto xperr;
|
||||
}
|
||||
|
||||
for (ptr = replace; ptr && *ptr; ptr++) {
|
||||
if (*ptr == '\\') {
|
||||
*ptr = '$';
|
||||
}
|
||||
}
|
||||
|
||||
if (flags && service && regex && replace) {
|
||||
switch_regex_t *re = NULL;
|
||||
int proceed = 0, ovector[30];
|
||||
|
|
Loading…
Reference in New Issue