diff --git a/modules/pv/pv_core.c b/modules/pv/pv_core.c index 239858c441a..85b635163b8 100644 --- a/modules/pv/pv_core.c +++ b/modules/pv/pv_core.c @@ -2092,7 +2092,8 @@ int pv_set_ruri_user(struct sip_msg* msg, pv_param_t *param, return -1; } - if((val==NULL) || (val->flags&PV_VAL_NULL)) + if((val==NULL) || (val->flags&PV_VAL_NULL) + || ((val->flags&PV_VAL_STR) && val->rs.len<=0)) { memset(&act, 0, sizeof(act)); act.type = SET_USER_T;