2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

use LINE_MAX for max conf file line size

This commit is contained in:
Todd C. Miller
2005-06-26 23:37:54 +00:00
parent e0ac56ae6f
commit 76f3c652d6

6
ldap.c
View File

@@ -62,8 +62,8 @@
__unused static const char rcsid[] = "$Sudo$";
#endif /* lint */
#ifndef BUF_SIZ
# define BUF_SIZ 1024
#ifndef LINE_MAX
# define LINE_MAX 2048
#endif
#ifndef LDAP_OPT_SUCCESS
@@ -503,7 +503,7 @@ int
sudo_ldap_read_config()
{
FILE *f;
char buf[BUF_SIZ], *c, *keyword, *value;
char buf[LINE_MAX], *c, *keyword, *value;
ldap_conf.tls_checkpeer = -1; /* default */