inih: increased max line size

This also removes the stop on first error directive
which was set but not used for very long time.

Resolves: #364

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2020-10-18 00:13:02 +02:00
parent 117bad2e29
commit e7233819da
3 changed files with 4 additions and 1 deletions

1
NEWS
View File

@@ -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)

View File

@@ -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])])

View File

@@ -15,6 +15,8 @@ https://github.com/benhoyt/inih
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <config.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>