Revision: 7636
http://sourceforge.net/p/astlinux/code/7636
Author: abelbeck
Date: 2016-04-11 21:01:59 +0000 (Mon, 11 Apr 2016)
Log Message:
-----------
pjsip, Add patch to fix Via IPv6 parsing, Thanks to Michael Keuter for noticing
Ref: http://git.asterisk.org/gitweb/?p=asterisk/asterisk.git;a=commit;h=0c414eaf35eb29dd7422a776a33955e89999f68d
Added Paths:
-----------
branches/1.0/package/pjsip/pjsip-0001-sip_parser.c-Fix-pjsip_VIA_PARAM_SPEC_ESC.patch
Added: branches/1.0/package/pjsip/pjsip-0001-sip_parser.c-Fix-pjsip_VIA_PARAM_SPEC_ESC.patch
===================================================================
--- branches/1.0/package/pjsip/pjsip-0001-sip_parser.c-Fix-pjsip_VIA_PARAM_SPEC_ESC.patch (rev 0)
+++ branches/1.0/package/pjsip/pjsip-0001-sip_parser.c-Fix-pjsip_VIA_PARAM_SPEC_ESC.patch 2016-04-11 21:01:59 UTC (rev 7636)
@@ -0,0 +1,29 @@
+From 0fc7ef5f01be9cc74d184c3ca3a973ff1ef44c93 Mon Sep 17 00:00:00 2001
+From: George Joseph <geo...@fa...>
+Date: Sun, 10 Apr 2016 12:54:06 -0600
+Subject: [PATCH] sip_parser.c: Fix pjsip_VIA_PARAM_SPEC_ESC
+
+pjsip_VIA_PARAM_SPEC_ESC should have been pjsip_TOKEN_SPEC_ESC + ":" but
+instead of appending ":" to pjsip_VIA_PARAM_SPEC_ESC it was being appended
+to pjsip_VIA_PARAM_SPEC again. This was causing parsing of Via headers
+to fail when an ipv6 address was in a "received" param and
+PJSIP_UNESCAPE_IN_PLACE was used. Probably just a copy/paste error.
+---
+ pjsip/src/pjsip/sip_parser.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pjsip/src/pjsip/sip_parser.c b/pjsip/src/pjsip/sip_parser.c
+index 378c22f..c18faa3 100644
+--- a/pjsip/src/pjsip/sip_parser.c
++++ b/pjsip/src/pjsip/sip_parser.c
+@@ -327,7 +327,7 @@ static pj_status_t init_parser()
+
+ status = pj_cis_dup(&pconst.pjsip_VIA_PARAM_SPEC_ESC, &pconst.pjsip_TOKEN_SPEC_ESC);
+ PJ_ASSERT_RETURN(status == PJ_SUCCESS, status);
+- pj_cis_add_str(&pconst.pjsip_VIA_PARAM_SPEC, ":");
++ pj_cis_add_str(&pconst.pjsip_VIA_PARAM_SPEC_ESC, ":");
+
+ status = pj_cis_dup(&pconst.pjsip_HOST_SPEC, &pconst.pjsip_ALNUM_SPEC);
+ PJ_ASSERT_RETURN(status == PJ_SUCCESS, status);
+--
+2.5.5
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|