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

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