diff --git a/modules/registrar/regpv.c b/modules/registrar/regpv.c index d891b4d743d..8574e924ae9 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;