Module: kamailio Branch: master Commit: 0a9ebbbdfe0cd4c137338adbacf5c5890222708a URL: https://github.com/kamailio/kamailio/commit/0a9ebbbdfe0cd4c137338adbacf5c589...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/0a9ebbbdfe0cd4c137338adbacf5c589... Patch: https://github.com/kamailio/kamailio/commit/0a9ebbbdfe0cd4c137338adbacf5c589...
---
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)