diff --git a/NEWS b/NEWS index 49b938a4..29347d67 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ - Don't apply BanIP checks to clients on the same subnet (#360) - Don't attempt TLS if the client closes the connection with zero data sent (#357) +- Increased the maximum configuration line (#364) * Version 1.1.1 (released 2020-09-21) diff --git a/configure.ac b/configure.ac index 2e4a0e82..4dc2b946 100644 --- a/configure.ac +++ b/configure.ac @@ -623,9 +623,9 @@ AC_ARG_WITH(werror, AC_SUBST([SRC_CFLAGS], [${src_cflags}]) dnl config options for inih -AC_DEFINE([INI_STOP_ON_FIRST_ERROR], [1], [inih configuration]) AC_DEFINE([INI_INLINE_COMMENT_PREFIXES], ["#"], [inih configuration]) AC_DEFINE([INI_ALLOW_MULTILINE], [1], [inih configuration]) +AC_DEFINE([INI_MAX_LINE], [2048], [inih configuration]) if test "$have_cwrap_pam" = yes; then m4_ifdef([PKG_CHECK_VAR], [PKG_CHECK_VAR([CWRAP_PAM_MODULES], [pam_wrapper], [modules])]) diff --git a/src/inih/ini.c b/src/inih/ini.c index b4d59212..f366ca35 100644 --- a/src/inih/ini.c +++ b/src/inih/ini.c @@ -15,6 +15,8 @@ https://github.com/benhoyt/inih #define _CRT_SECURE_NO_WARNINGS #endif +#include + #include #include #include