Skip to content

Commit

Permalink
registrar: Fix incomplete commit d2a958d
Browse files Browse the repository at this point in the history
Many thanks to @fedorna for catching this one!

Fixes #1588
  • Loading branch information
liviuchircu committed Jan 18, 2019
1 parent 948089a commit d47b516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion modules/registrar/reg_mod.c
Expand Up @@ -457,7 +457,7 @@ static int registrar_fixup(void** param, int param_no)
return fixup_spve(param);
} else if (param_no == 3) {
/* AOR - from PVAR */
return fixup_pvar(param);
return fixup_sgp(param);
} else {
/* ownership tag */
return fixup_sgp(param);
Expand Down
8 changes: 1 addition & 7 deletions modules/registrar/save.c
Expand Up @@ -578,7 +578,6 @@ int save_aux(struct sip_msg* _m, str* forced_binding, char* _d, char* _f,
int st;
str uri;
str flags_s;
pv_value_t val;

rerrno = R_FINE;
memset( &sctx, 0 , sizeof(sctx));
Expand Down Expand Up @@ -668,15 +667,10 @@ int save_aux(struct sip_msg* _m, str* forced_binding, char* _d, char* _f,
update_act_time();

if (_s) {
if (pv_get_spec_value( _m, (pv_spec_p)_s, &val)!=0) {
if (fixup_get_svalue( _m, (gparam_p)_s, &uri)!=0) {
LM_ERR("failed to get PV value\n");
goto return_minus_one;
}
if ( (val.flags&PV_VAL_STR)==0 ) {
LM_ERR("PV vals is not string\n");
goto return_minus_one;
}
uri = val.rs;
} else {
uri = get_to(_m)->uri;
}
Expand Down

0 comments on commit d47b516

Please sign in to comment.