Module: sip-router
Branch: master
Commit: 146873cf2b101d6363bb20c235b7dcdb8bb54134
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=146873c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Oct 9 09:13:15 2012 +0200
msrp: fixed copy&paste issue for getting To-Path size
- the parsing of From-Path was used instead
- reported by Peter Dunkley
---
modules/msrp/msrp_vars.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/msrp/msrp_vars.c b/modules/msrp/msrp_vars.c
index 0debdc6..cb1dbb9 100644
--- a/modules/msrp/msrp_vars.c
+++ b/modules/msrp/msrp_vars.c
@@ -260,7 +260,7 @@ int pv_get_msrp(sip_msg_t *msg, pv_param_t *param, pv_value_t *res)
sar = (str_array_t*)hdr->parsed.data;
return pv_get_uintval(msg, param, res, sar->size);
case 18:
- if(msrp_parse_hdr_from_path(mf)<0)
+ if(msrp_parse_hdr_to_path(mf)<0)
return pv_get_null(msg, param, res);
hdr = msrp_get_hdr_by_id(mf, MSRP_HDR_TO_PATH);
if(hdr==NULL)