[sr-dev] git:sr_3.0: core: mod fixup spve_uint and spve_str fix

Andrei Pelinescu-Onciul andrei at iptel.org
Fri Dec 11 11:38:48 CET 2009


Module: sip-router
Branch: sr_3.0
Commit: 67df01ce1ac7a34060ec1de8490888c9eed1a0f4
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=67df01ce1ac7a34060ec1de8490888c9eed1a0f4

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Fri Dec 11 11:33:57 2009 +0100

core: mod fixup spve_uint and spve_str fix

fixup_spve_uint() and fixup_spve_str() wrongly converted the
second parameter to a spve instead of an int or str.

Reported-by: Daniel-Constantin Mierla <miconda at gmail.com>

---

 mod_fix.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/mod_fix.c b/mod_fix.c
index 53b12ea..cca46cd 100644
--- a/mod_fix.c
+++ b/mod_fix.c
@@ -232,7 +232,8 @@ FIXUP_F2FP_T(igp_pvar_pvar, 1, 3, 1, FPARAM_INT|FPARAM_PVS, FPARAM_PVS)
 	}
 
 
+/* format: name, minp, maxp, no_of_spve_params, type_for_rest_params */
 FIXUP_F_SPVE_T(spve_spve, 1, 2, 2, 0)
-FIXUP_F_SPVE_T(spve_uint, 1, 2, 2, FPARAM_INT)
-FIXUP_F_SPVE_T(spve_str, 1, 2, 2, FPARAM_STR)
+FIXUP_F_SPVE_T(spve_uint, 1, 2, 1, FPARAM_INT)
+FIXUP_F_SPVE_T(spve_str, 1, 2, 1, FPARAM_STR)
 FIXUP_F_SPVE_T(spve_null, 1, 1, 1, 0)




More information about the sr-dev mailing list