Module: kamailio Branch: master Commit: 0a9ebbbdfe0cd4c137338adbacf5c5890222708a URL: https://github.com/kamailio/kamailio/commit/0a9ebbbdfe0cd4c137338adbacf5c5890222708a
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> 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) _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
