Ver Fonte

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

(cherry picked from commit 0a9ebbbdfe0cd4c137338adbacf5c5890222708a)
(cherry picked from commit 7e763c727076af3a3a35db4fc840e857ba00ae46)
Daniel-Constantin Mierla há 7 anos atrás
pai
commit
4212e50864
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/lib/srdb1/db.c

+ 1 - 1
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)