[sr-dev] git:master: rr(k): fixed offset in building new route header
Daniel-Constantin Mierla
miconda at gmail.com
Thu Aug 9 08:52:07 CEST 2012
Module: sip-router
Branch: master
Commit: e154b2fb9f02d56d9c6a4b2d285791151ae0c8a3
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e154b2fb9f02d56d9c6a4b2d285791151ae0c8a3
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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
---
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));
More information about the sr-dev
mailing list