Module: kamailio
Branch: master
Commit: f39b92acb2be15e03aa117bdf171087ea7a77050
URL:
https://github.com/kamailio/kamailio/commit/f39b92acb2be15e03aa117bdf171087…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/f39b92acb2be15e03aa117bdf171087…
Patch:
https://github.com/kamailio/kamailio/commit/f39b92acb2be15e03aa117bdf171087…
---
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;