Blame SOURCES/nss-pam-ldapd-bz1676861-Increase-size-of-config-file-token.patch

09a3f6
From 9760dcef59da6ffbf1826724fa79621d74255e06 Mon Sep 17 00:00:00 2001
09a3f6
From: Arthur de Jong <arthur@arthurdejong.org>
09a3f6
Date: Sat, 23 Dec 2017 17:58:27 +0100
09a3f6
Subject: [PATCH] Increase size of config file token
09a3f6
09a3f6
This increases the maximum size of tokens that are read from the
09a3f6
nslcd.conf configuration file to 256 characters. This was a problem for
09a3f6
some very long uri values.
09a3f6
09a3f6
Closes https://github.com/arthurdejong/nss-pam-ldapd/issues/21
09a3f6
---
09a3f6
 nslcd/cfg.c | 2 +-
09a3f6
 1 file changed, 1 insertion(+), 1 deletion(-)
09a3f6
09a3f6
diff --git a/nslcd/cfg.c b/nslcd/cfg.c
09a3f6
index a6cfeb32..60d860e7 100644
09a3f6
--- a/nslcd/cfg.c
09a3f6
+++ b/nslcd/cfg.c
09a3f6
@@ -1265,7 +1265,7 @@ static void cfg_read(const char *filename, struct ldap_config *cfg)
09a3f6
   char linebuf[MAX_LINE_LENGTH];
09a3f6
   char *line;
09a3f6
   char keyword[32];
09a3f6
-  char token[64];
09a3f6
+  char token[256];
09a3f6
   int i;
09a3f6
 #ifdef LDAP_OPT_X_TLS
09a3f6
   int rc;