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