[sr-dev] git:master:f39b92ac: registrar: use proper iterator to get to the index of the $ulc() contact

Daniel-Constantin Mierla miconda at gmail.com
Sat Mar 7 23:33:47 CET 2015


Module: kamailio
Branch: master
Commit: f39b92acb2be15e03aa117bdf171087ea7a77050
URL: https://github.com/kamailio/kamailio/commit/f39b92acb2be15e03aa117bdf171087ea7a77050

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-03-07T23:33:29+01:00

registrar: use proper iterator to get to the index of the $ulc() contact

- part of a patch by Luis Azedo

---

Modified: modules/registrar/regpv.c

---

Diff:  https://github.com/kamailio/kamailio/commit/f39b92acb2be15e03aa117bdf171087ea7a77050.diff
Patch: https://github.com/kamailio/kamailio/commit/f39b92acb2be15e03aa117bdf171087ea7a77050.patch

---

diff --git a/modules/registrar/regpv.c b/modules/registrar/regpv.c
index d891b4d..8574e92 100644
--- a/modules/registrar/regpv.c
+++ b/modules/registrar/regpv.c
@@ -192,7 +192,7 @@ int pv_get_ulc(struct sip_msg *msg,  pv_param_t *param,
 	/* get contact */
 	i = 0;
 	c = rpp->contacts;
-	while(rpp)
+	while(c)
 	{
 		if(i == idx)
 			break;




More information about the sr-dev mailing list