Module: kamailio
Branch: 5.5
Commit: 60da6822803c04d55f0235984239afb188faef89
URL:
https://github.com/kamailio/kamailio/commit/60da6822803c04d55f0235984239afb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-05-26T08:14:17+02:00
pv: proper increment to check escaped char for s.select
(cherry picked from commit ffa19ffedeb8db8ac38a742ae8b686525fd906ea)
---
Modified: src/modules/pv/pv_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/60da6822803c04d55f0235984239afb…
Patch:
https://github.com/kamailio/kamailio/commit/60da6822803c04d55f0235984239afb…
---
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);