Module: kamailio
Branch: master
Commit: 82cfea317fd8d02a6c94347bc1be18c8a06e580f
URL:
https://github.com/kamailio/kamailio/commit/82cfea317fd8d02a6c94347bc1be18c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-05-27T09:11:48+02:00
htable: error on not finding htable in pv set
---
Modified: src/modules/htable/ht_var.c
---
Diff:
https://github.com/kamailio/kamailio/commit/82cfea317fd8d02a6c94347bc1be18c…
Patch:
https://github.com/kamailio/kamailio/commit/82cfea317fd8d02a6c94347bc1be18c…
---
diff --git a/src/modules/htable/ht_var.c b/src/modules/htable/ht_var.c
index fc37234f5ba..9770e51fd19 100644
--- a/src/modules/htable/ht_var.c
+++ b/src/modules/htable/ht_var.c
@@ -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");