[sr-dev] git:master:0a9ebbbd: lib/srdb1: increased the safety check for max db url to 1023

Daniel-Constantin Mierla miconda at gmail.com
Mon May 28 15:34:49 CEST 2018


Module: kamailio
Branch: master
Commit: 0a9ebbbdfe0cd4c137338adbacf5c5890222708a
URL: https://github.com/kamailio/kamailio/commit/0a9ebbbdfe0cd4c137338adbacf5c5890222708a

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-05-28T15:34:29+02:00

lib/srdb1: increased the safety check for max db url to 1023

- was 255, too small for large connection strings needed for no-sql
- reported by GH #1545

---

Modified: src/lib/srdb1/db.c

---

Diff:  https://github.com/kamailio/kamailio/commit/0a9ebbbdfe0cd4c137338adbacf5c5890222708a.diff
Patch: https://github.com/kamailio/kamailio/commit/0a9ebbbdfe0cd4c137338adbacf5c5890222708a.patch

---

diff --git a/src/lib/srdb1/db.c b/src/lib/srdb1/db.c
index c3908af85d..305543c931 100644
--- a/src/lib/srdb1/db.c
+++ b/src/lib/srdb1/db.c
@@ -60,7 +60,7 @@
 #include "db_query.h"
 #include "db.h"
 
-static unsigned int MAX_URL_LENGTH = 255;	/*!< maximum length of a SQL URL */
+static unsigned int MAX_URL_LENGTH = 1023;	/*!< maximum length of a SQL URL */
 
 
 int db_check_api(db_func_t* dbf, char *mname)




More information about the sr-dev mailing list