Skip to content

Commit

Permalink
htable: error on not finding htable in pv set
Browse files Browse the repository at this point in the history
miconda committed May 27, 2024
1 parent d4629be commit 82cfea3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/htable/ht_var.c
Original file line number Diff line number Diff line change
@@ -73,8 +73,11 @@ int pv_set_ht_cell(

if(hpv->ht == NULL)
hpv->ht = ht_get_table(&hpv->htname);
if(hpv->ht == NULL)
if(hpv->ht == NULL) {
LM_ERR("htable not found for setting $sht(%.*s=>%.*s)\n",
hpv->htname.len, hpv->htname.s, htname.len, htname.s);
return -1;
}

if(pv_printf_s(msg, hpv->pve, &htname) != 0) {
LM_ERR("cannot get $sht name\n");

0 comments on commit 82cfea3

Please sign in to comment.