Module: kamailio
Branch: master
Commit: eeefe7dcc2af90e7def8f1698e8f79d0dd020043
URL:
https://github.com/kamailio/kamailio/commit/eeefe7dcc2af90e7def8f1698e8f79d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-05-04T16:25:03+02:00
sanity: fix sanity_reply function name for config exports
---
Modified: src/lib/srdb1/db.c
Modified: src/lib/srdb1/db_con.h
Modified: src/modules/sanity/sanity_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/eeefe7dcc2af90e7def8f1698e8f79d…
Patch:
https://github.com/kamailio/kamailio/commit/eeefe7dcc2af90e7def8f1698e8f79d…
---
diff --git a/src/lib/srdb1/db.c b/src/lib/srdb1/db.c
index 54b66d330b..5dc0cabfb7 100644
--- a/src/lib/srdb1/db.c
+++ b/src/lib/srdb1/db.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2001-2003 FhG Fokus
* Copyright (C) 2007-2008 1&1 Internet AG
- *
+ *
* This file is part of Kamailio, a free SIP server.
*
* Kamailio is free software; you can redistribute it and/or modify
@@ -14,8 +14,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -294,7 +294,7 @@ db1_con_t* db_do_init2(const str* url, void* (*new_connection)(),
db_pooling_t p
LM_ERR("The configured db_url is too long\n");
return 0;
}
-
+
/* this is the root memory for this database connection. */
res = (db1_con_t*)pkg_malloc(con_size);
if (!res) {
diff --git a/src/lib/srdb1/db_con.h b/src/lib/srdb1/db_con.h
index 3a026f1f93..fab02c0e62 100644
--- a/src/lib/srdb1/db_con.h
+++ b/src/lib/srdb1/db_con.h
@@ -14,8 +14,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -36,6 +36,7 @@
* are used as a connection handle from modules uses the db API.
*/
typedef struct {
+ long cpid; /*!< connection process id */
const str* table; /*!< Default table that should be used */
const char *tquote; /*!< Char to quote special tokens (table/column names) */
unsigned long tail; /*!< Variable length tail, database module specific */
diff --git a/src/modules/sanity/sanity_mod.c b/src/modules/sanity/sanity_mod.c
index 3f813bb021..832a0c2308 100644
--- a/src/modules/sanity/sanity_mod.c
+++ b/src/modules/sanity/sanity_mod.c
@@ -60,7 +60,7 @@ static cmd_export_t cmds[] = {
REQUEST_ROUTE|ONREPLY_ROUTE},
{"sanity_check", (cmd_function)w_sanity_check, 2, fixup_igp_igp, 0,
REQUEST_ROUTE|ONREPLY_ROUTE},
- {"sanity_check", (cmd_function)w_sanity_reply, 0, 0, 0,
+ {"sanity_reply", (cmd_function)w_sanity_reply, 0, 0, 0,
REQUEST_ROUTE|ONREPLY_ROUTE},
{"bind_sanity", (cmd_function)bind_sanity, 0, 0, 0, 0 },
{0, 0, 0, 0, 0, 0}