Skip to content

Commit

Permalink
pv: fix for param.count transformation with pv parameter
Browse files Browse the repository at this point in the history
- reported by GH #1041

(cherry picked from commit f151c26)
  • Loading branch information
miconda committed Mar 28, 2017
1 parent 3883a31 commit a032c4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/pv/pv_trans.c
Expand Up @@ -2662,13 +2662,13 @@ char* tr_parse_paramlist(str* in, trans_t *t)
start_pos = ++p;
_tr_parse_sparam(p, p0, tp, spec, ps, in, s);
t->params = tp;
tp = 0;
if (p - start_pos != 1)
if (tp->type != TR_PARAM_SPEC && p - start_pos != 1)
{
LM_ERR("invalid separator in transformation: "
"%.*s\n", in->len, in->s);
goto error;
}
tp = 0;

while(*p && (*p==' ' || *p=='\t' || *p=='\n')) p++;
if(*p!=TR_RBRACKET)
Expand Down

0 comments on commit a032c4c

Please sign in to comment.