Module: kamailio
Branch: master
Commit: 3433e386a8ed1e9feef7b05a454d8989a45c1782
URL: 
https://github.com/kamailio/kamailio/commit/3433e386a8ed1e9feef7b05a454d8989a45c1782

Author: Luis Azedo <l...@2600hz.com>
Committer: Luis Azedo <l...@2600hz.com>
Date: 2017-04-08T13:08:38+01:00

db_text: fix table length in raw delete

---

Modified: src/modules/db_text/dbt_raw_query.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/3433e386a8ed1e9feef7b05a454d8989a45c1782.diff
Patch: 
https://github.com/kamailio/kamailio/commit/3433e386a8ed1e9feef7b05a454d8989a45c1782.patch

---

diff --git a/src/modules/db_text/dbt_raw_query.c 
b/src/modules/db_text/dbt_raw_query.c
index 5ed3ce6..71e7d3f 100644
--- a/src/modules/db_text/dbt_raw_query.c
+++ b/src/modules/db_text/dbt_raw_query.c
@@ -336,7 +336,7 @@ int dbt_raw_query_delete(db1_con_t* _h, str* _s, 
db1_res_t** _r)
        dbt_trim(table_ptr);
 
        table.s = table_ptr;
-       table.len = len;
+    table.len = strlen(table_ptr);
        LM_DBG("using table '%.*s'\n", table.len, table.s);
 
        if(dbt_use_table(_h, &table) != 0) {


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to