Module: kamailio
Branch: master
Commit: ffa19ffedeb8db8ac38a742ae8b686525fd906ea
URL:
https://github.com/kamailio/kamailio/commit/ffa19ffedeb8db8ac38a742ae8b6865…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-05-24T16:18:12+02:00
pv: proper increment to check escaped char for s.select
---
Modified: src/modules/pv/pv_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ffa19ffedeb8db8ac38a742ae8b6865…
Patch:
https://github.com/kamailio/kamailio/commit/ffa19ffedeb8db8ac38a742ae8b6865…
---
diff --git a/src/modules/pv/pv_trans.c b/src/modules/pv/pv_trans.c
index 2f10f67080..517ce5342d 100644
--- a/src/modules/pv/pv_trans.c
+++ b/src/modules/pv/pv_trans.c
@@ -2752,8 +2752,8 @@ char* tr_parse_string(str* in, trans_t *t)
tp->v.s.s = p;
tp->v.s.len = 1;
if(*p=='\\') {
+ p++;
if(*p=='\\' || *p=='n' || *p=='r' || *p=='t') {
- p++;
tp->v.s.len = 2;
} else {
LM_ERR("unexpected escape char: %c\n", *p);