Module: sip-router
Branch: 3.3
Commit: 8db3e9c29b2cf1ff5c6f93411d3e9a90f7eb82ef
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8db3e9c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Aug 9 08:50:20 2012 +0200
rr(k): fixed offset in building new route header
- related to the previous fix done to strict routing intermediary hop
(cherry picked from commit e154b2fb9f02d56d9c6a4b2d285791151ae0c8a3)
---
modules_k/rr/loose.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/rr/loose.c b/modules_k/rr/loose.c
index 22360df..f5d869f 100644
--- a/modules_k/rr/loose.c
+++ b/modules_k/rr/loose.c
@@ -322,7 +322,7 @@ static inline int save_ruri(struct sip_msg* _m)
memcpy(s, RR_ROUTE_PREFIX, RR_ROUTE_PREFIX_LEN);
memcpy(s + RR_ROUTE_PREFIX_LEN, _m->first_line.u.request.uri.s,
_m->first_line.u.request.uri.len);
- memcpy(s + ROUTE_PREFIX_LEN + _m->first_line.u.request.uri.len,
+ memcpy(s + RR_ROUTE_PREFIX_LEN + _m->first_line.u.request.uri.len,
ROUTE_SUFFIX, ROUTE_SUFFIX_LEN);
LM_DBG("New header: '%.*s'\n", len, ZSW(s));