[sr-dev] git:master: core: fixed pv_get_spec_name()

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 9 11:03:39 CEST 2009


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Jun  9 11:59:53 2009 +0300

core: fixed pv_get_spec_name()

- check for PV_NAME_PVAR was wrongly used with PV_NAME_INTSTR
- reported and credits to Christian Koch

---

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

diff --git a/pvapi.c b/pvapi.c
index 87de64a..72fb48d 100644
--- a/pvapi.c
+++ b/pvapi.c
@@ -800,7 +800,7 @@ int pv_get_spec_name(struct sip_msg* msg, pv_param_p ip, pv_value_t *name)
 			name->flags = PV_VAL_INT|PV_TYPE_INT;
 		}
 		return 0;
-	} else if(ip->pvn.type==PV_NAME_INTSTR) {
+	} else if(ip->pvn.type==PV_NAME_PVAR) {
 		/* pvar */
 		if(pv_get_spec_value(msg, (pv_spec_p)(ip->pvn.u.dname), name)!=0)
 		{




More information about the sr-dev mailing list