Module: kamailio Branch: master Commit: 91df1951c725ded9c09a094dc189389785156bd6 URL: https://github.com/kamailio/kamailio/commit/91df1951c725ded9c09a094dc189389785156bd6
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2025-12-03T11:23:55+01:00 mtree: make dbtable attribute mandatory per mtree definition --- Modified: src/modules/mtree/mtree.c --- Diff: https://github.com/kamailio/kamailio/commit/91df1951c725ded9c09a094dc189389785156bd6.diff Patch: https://github.com/kamailio/kamailio/commit/91df1951c725ded9c09a094dc189389785156bd6.patch --- diff --git a/src/modules/mtree/mtree.c b/src/modules/mtree/mtree.c index 507e705d124..2bf0bff845f 100644 --- a/src/modules/mtree/mtree.c +++ b/src/modules/mtree/mtree.c @@ -784,9 +784,8 @@ int mt_table_spec(char *val) goto error; } if(tmp.dbtable.s == NULL) { - LM_INFO("no table name - default mtree\n"); - tmp.dbtable.s = "mtree"; - tmp.dbtable.len = 5; + LM_ERR("no db table provided\n"); + goto error; } if((tmp.type != 0) && (tmp.type != 1) && (tmp.type != 2)) { LM_ERR("unknown tree type <%d>\n", tmp.type); _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
