[sr-dev] git:3.3: core: fixed bug in PV caching that broke the use of the $$ symbol

Daniel-Constantin Mierla miconda at gmail.com
Mon Feb 25 14:05:58 CET 2013


Module: sip-router
Branch: 3.3
Commit: 514f6cc66e5220779188aad15f3b3eeeace7aabf
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=514f6cc66e5220779188aad15f3b3eeeace7aabf

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sun Jan 20 14:18:55 2013 +0000

core: fixed bug in PV caching that broke the use of the $$ symbol

- Found and fixed by Hugh Waite @ Crocodile RCS
(cherry picked from commit c059041a71a1b7175243c366316108ce370fffa7)

---

 pvapi.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pvapi.c b/pvapi.c
index 64878f2..5072f0f 100644
--- a/pvapi.c
+++ b/pvapi.c
@@ -120,6 +120,10 @@ int pv_locate_name(str *in)
 		LM_ERR("missing pv marker [%.*s]\n", in->len, in->s);
 		return -1;
 	}
+	if(in->s[1]==PV_MARKER)
+	{
+		return 2;
+	}
 	pcount = 0;
 	if(in->s[1]==PV_LNBRACKET)
 	{




More information about the sr-dev mailing list