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:
Michael Jerris 2008-03-20 03:36:30 +00:00
parent 3474b1412a
commit 32bf92fb01
1 changed files with 7 additions and 0 deletions

View File

@ -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];